Any reason this is commented out?
//setup_postdata($post);
This function setups global variables for current post and author data is pulled from one of those.
Related Posts:
- How to display posts by current user/author in a custom page template?
- Query posts distinct authors
- Exclude a category of posts in author template
- show latest authors blog post
- Keep featured content post in homepage with original order
- How to get posts published between a date and today?
- How to show related posts by category
- Hook that get’s triggered when the author of a post is changed
- Prevent Authors from viewing each others Posts
- Display Random Author with Details in Sidebar
- Display all posts from specific categories on a page
- How to show list of posts by author and category?
- WordPress: How to get the current logged in author page URL?
- How to add editor’s name to entry meta byline?
- Different permalink for posts and authors
- How to exclude latest x posts from a paginated query?
- Display content from a specific category
- post_name empty after wp_insert_post
- How to get previous 10 days post from a specific date – WP Query
- Number of posts per page setting is not working?
- Restrict the Number of Posts an Author can Publish (over time)?
- Search posts by post author name
- Get the user type of an author
- Show the title of the latest post by author
- WordPress Posts Out Of Order after 3.1 Update
- Find most recent authors
- Query only Posts from Both of Two Category?
- Show author post count in sidebar – Variable
- Insert custom div between posts
- Can’t show comments count per post outside loop
- Get current users post URL?
- Get the author of the latest revision
- Filter posts by author and category simultaneously
- Custom Post Type & Author not associating, user post count is 0, api doesn’t return author in post objects
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Only display posts with comments
- Post author is changed to admin after his post is modified by admin
- Order post by year DESC and month ASC
- WordPress get posts by date without query_posts
- How to Display Post View Count
- Get all posts by post_author
- Different amount of posts on homepage than paged pages
- Featured Posts for Category Pages
- How can I control multiple editing of wordpress posts?
- Multiple authors for single post without plugin
- Limit number of posts a user can make per minute?
- Cannot Update A Post, 404 Error
- Authors in menu, template list post by author
- Show the author’s count of total amount of posts assign to a custom taxonomy term
- Author must complete profile info before they can publish a post?
- Function to show random posts from a category
- WP rest api returns 404 only when author param is used
- Hiding posts in a list from specified categories
- How can I list random authors from current post category?
- How would I get 1 latest post from a query for 5 posts?
- Filter Posts By Tag
- Can I set and show “important” post in my blog?
- Exclude posts with empty post_content in wp_query
- Improving WP_Query for performance when random posts are ordered
- Create dropdown list post
- I would like to give special promotion for the first 100 posts in my blog? Can anyone tell me how to do that?
- How can I show wordpress posts based on author?
- previewing my posts on static page?
- Show info to author only
- Exclude newest post from category X but show rest
- Reset Popular post query?
- Auto “expire” all of an authors posts on spcific date
- How to get the user meta data for a post?
- Limit posts per author role (excluding admin) in home page
- Guest Author – How to display posts on /author/ archive page
- Inserting custom data to the_post() during loop
- How To Get Posts With A Specific Word
- How can I show many posts an author has per week?
- How to give capability (publish contributors posts) to author role?
- Why WP_Query(‘showposts=5’) shows only 1 post?
- is there a way to show the the post title after the image?
- Display posts with tag that matches current post title
- Why is querying posts messing up my pages?
- Display all posts that were published before full post on single.php
- Category Foreach keeps looping?
- Whitelist Author of Private Post
- Blog post per page setting conflicting with custom WP_Query?
- How to exclude latest x posts from a paginated query?
- Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
- Show posts by a custom post author
- Getting the current author (it has changed) of a post, not the original author
- Random ajax load only works with posts_per_page set to -1
- Display an author’s posts on his own author page
- Multi row post list
- Showing author page if user has no post
- posts_per_page option limits the number of Gallery items
- How to make multiple sections in home pulling posts category wise?
- wp_posts table: safely remove unused columns to save database storage
- Query Posts by Custom Field
- Order posts alphabetically: how to set order=asc in mysql query?
- How to order posts in an arbitrary order?
- Display Notification Bar on Header on Certain Post Count
- Display Posts on Custom Page
- How to get posts from a current post’s month?
- How do I retrieve a users’ last 5 posts?