From comment:
Use wp_reset_query()
after each loop to undo the changes made to global variables by setup_postdata()
.
Related Posts:
- TV Show database – Best way for structuring it?
- How inefficient is it to use a Custom Post for 4-5 sentences & pull all to 1 page?
- Number of posts in the archive
- Displaying multiple post types on home page
- How do I disable the built-in editor and automatically configure the properties of new pages?
- Displaying posts inside table having issues
- One Post with different content, depending on a Page
- Subpage for Custom Post Type
- create a template page for a post
- Page vs Custom Post Types Differences/Issues
- How to check post type (to include custom css)
- How to customize a permalink (URL) structure?
- Plugin: register custom post types, child ready and performance best practices
- Display only one post each WEEK
- Display all post titles of current post type
- Display content based on a users login
- How to Mass Delete Images from Media Library
- Permalink structure by Post Meta value
- How to integrate video slide using custom post types?
- Allow non-logged in users to see a future post after clicking on a list of future posts
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- will post_id ever change? Can I safely use post_id for custom queries?
- List custom taxonomy specific to one custom post type
- Define new user capability for custom post types?
- How to allow visitors to enter custom post type?
- Is it possible to create relational metabox values in a custom post?
- Exclude pages in archives results
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- Meta query for custom post type ignored in main query
- Make parts of your wordpress website completely built with data from external APIs?
- 2 Templates 1 custom post type according url
- How do I move/order posts with a tag to the end?
- changing meta value and meta key of price field
- WordPress sort search results by custom order
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Trouble with CPT Child 404
- Database to page routing API?
- Hide parent categories when clicked, and show it’s childs
- Custom Path/Folder behind a custom post type
- Time based access control of custom post types – what is good approach?
- Stuck in Order by more then one
- Show titles, date of all posts on single category page
- Assign same parrent Page to pages AND custom post types
- delete_published_posts does not work
- How to start a new post with custom Taxonomies already set?
- Query Multiple Custom Posts by Custom Fields
- WooCommerce sort products by the actual product width(not the shipping width)
- Allow Static Page Load Dynamic Child Pages
- Create a custom php page and load it at a specific slug
- Structure of data : CPT + terms
- How to handle paged param in post and custom-post-type?
- Default text in a specific post type, but not visible?
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- WP_Query custom post type query not showing the exact post type
- Shortcode to display Staff post type based on Location post type and Specialty post type
- Static page determines as home, but it is not
- Multiple (two) category postings on the same page.
- How to remove post listing page for a custom post type
- How to include term custom meta into the custom taxonomy term permalink structure
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- A form that can save/edit after first input
- Show Custom Post Type meta boxes only on Page Edit
- Adding the_content() in custom template email
- Cannot save CPT meta box
- non-hierarchical post type with hierarchical url structure
- Why does my content disapear when I make a page to match an archive name?
- Send notification to the admin when new custom post is submitted
- ‘exclude’ argument is not working with get_posts for a custom post type
- How to use Custom Page Templates for hierarchical Custom Post Type
- How do i search authors from search form using author’s name
- How to get the intersection of two terms both from different custom taxonomies
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Allow users to create posts without logging in?
- How to add attributes to taxonomies that may be different from post to post?
- Pages are not saving due to custom post type
- Migrating a taxonomy’s tags to the native category
- Top Level pages in wordpress giving 404, but child pages working fine
- Page for custom post type
- How to produce a sub-page-system in WordPress
- Best structure / rewrite rules to achieve the following url
- don’t publish custom post type post if a meta data field isn’t valid
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Why does not this wp_redirect work in is_single()?
- How to sort posts in a custom post type by title in ascending order by default?
- Categorise Custom Post Types
- Why is get_pages() returning a boolean?
- Detect inside a custom query the kind of post type to assign custom classes
- Pros and cons of a custom page vs custom post type template file
- Reworking function for counting custom post type posts count
- How to include custom post type posts on a page?
- custom post type vs. conditionally displaying meta boxes for specific terms?
- Get only used meta_values
- Edit the_content() function so to add a div wrapper
- How do you make a custom post type items automatically delete items 3 months after publication?
- Custom Post Type & Custom Menu Walker to append custom class for active post types
- custom post data – how to
- Ordering Submenu Pages in WP 3.1
- Including link to custom post type in ‘wp_list_pages’ function