Tag Info

New answers tagged

1

The Options Reference doesn't seem not complete, it is not complete. Have you seen the big notice in the page you linked? Anyway, it you want to get the name of the author of a given post you are looking in the wrong place. The author of a post is not a option, i.e., it is not a preference or configuration setting. Instead, author is a property of the post ...


1

Options are for general settings not specific to a post. To get the name of the author of a post, you will need to first get the ID of the author from the $post object and then use that to create a $user object from which the name can be retrieved. Example code: global $post; $user_id = $post->post_author; $user = new WP_User( $user_id ); $display_name ...



Top 50 recent answers are included