Removing the first “wp_reset_postdata ();” solved the problem.
Related Posts:
- Remove the Homepage Query
- Using the Loop to show all levels of subpages under a parent page? Halfway there
- Pagination not working on home page
- Child Pages Loop
- Get post by page name or slug
- Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content
- is_home, and is_front_page conditional problem
- Display subpages under parent page as a list within a loop
- Is including the loop necessary for page.php? [duplicate]
- Identify the page being shown while in The Loop
- If Loop has odd number of posts on last page Custom style for last post in it
- single page site with subpages
- How to loop through ALL pages?
- Loop and Page template : my WP_query don’t take args
- Better way to display posts from specific categories, in a grid layout
- Create a loop that gets pages with their template
- Display content of page template (get_page)
- Loop after page content
- wp alchemy multiple image uploader output images to template
- Recent posts on a static home page
- Get Page content to displayin Bootstrap Modal
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- How do I make a variable available inside partials?
- Exclude page name from loop
- Stepping through a foreach loop – adding +1 to the end of it so next time it loops it starts on item 2
- Include multiple page ids in loop
- Get post offset/posts page offset in single post page (outside the loop)
- First archive page with a few posts
- Tags on page (not post) returns nothing – why? Improved clarified question!
- How do I put my frontpage featured image in a page template for home.php?
- Exclude page from loop results
- Display post formats differently on index.php (loop in function)
- WordPress loop not working only on home page, works on all other pages
- Print the whole page?
- How do i create a list-posts-page?
- Skip 5 latest post while paging?
- WordPress: query pages except remove one page
- Archive: Lists itself
- is it bad to copy the loop for a template?
- Get top Page IDs from menu and cycle through their child pages on a scroller
- Search – Check if post is a page on search page
- Homepage Loop Somehow Breaks Styling Of Post Grid
- Echo Most Recent Sticky Post in Loop?
- Structure and Display Content from Multiple Pages on Single Page
- Making a specific page wordpress compatable that is not index
- Default Template infinite loop of Title
- Have multiple loops on a page appear after/between page content
- get_template_part() to render single page Theme
- 2 loops in blog homepage
- Home page loop with pagination problem
- Different style for first two (sticky) posts
- get_page() unlike Loop returns the post content without html tags. How can I fix this?
- Get date of last update outside of loop
- WordPress category & taxonomy loop with pagination
- Changing behavior of the loop twice in one page
- Displaying child page content of a certain parent
- Pagination adding extra posts only on page 2
- Two loops by pre_get_post on same page
- Sort Posts By Category?
- Can’t access login screen, wp-login.php 404’s
- How to use current_post to open a new unordered list every five posts
- Pagination for multiple loops
- How to target thumbnails of the first post in the loop
- “Call to a member function have_posts() on array” error on have_posts();
- How to exclude or filter password protected posts when using next_post_link() previous_post_link
- How to include custom code on a page that’s set to act as homepage?
- Call wp-blog-header.php header without performing a wp_query
- I don’t want the complete article to show on homepage
- How to output thumbnail twice in a loop
- Frontpage pagination by week
- Displaying posts on homepage – Template Page
- Integrating WordPress with Your Website
- Display more than 10 posts on author.php file
- Accessing the Posts page Content
- custom post creation on front page – on submit a search is done
- Pagination for two loops
- Announces with different formatting dependently on a number
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- Several loops in sidebar issues
- List page is showing 404
- Adding $args to wp_schedule_event() causes hook to add infinitely to WP Cron
- $post is undefined in wordpress loop [ajax]
- Duplicated tag in loop
- Loop only shows first two posts
- Why is my archive page looping through all but one post?
- My WordPress installation doesn’t load correct template
- Work arounds for conditional checks inside the loop in search.php?
- Posts are not showing up on next page.
- adding tax_query to $query_string
- Popular posts with Varnish ESI
- Querying posts from only one category and exluding the latest post
- Remove posts_orderby filter then add it back in
- WP update_post_meta link loop
- Conditional Check in The Loop’s Parameters
- How does the JSON API work to parse incoming JSON and fetch a post based on an ID?
- How to add excerpt in loop in Twenty Eleven theme?
- Exclude Authors based off date of last post
- How to implement template file and the loop
- Show only posts from todays date [duplicate]
- Why did my most recent article fall behind an older one on my site?