Last active
March 3, 2022 13:20
-
-
Save arafatjamil01/2715e212df96dc746bce01a68fb8b968 to your computer and use it in GitHub Desktop.
Useful codes in wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Post author id retrieving from a post | |
$post_author_id = get_post_field( 'post_author', get_the_ID() ); | |
// Get date from theme setttings | |
the_time( get_option( 'date_format' ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment