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
- Restrict custom post type to only site administrator role
- How to force one column layout on custom post type edit page?
- Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?
- How to change “Draft” string for status of custom post type to “Unavailable”?
- Search multiple custom fields by using meta_query
- Custom Post Type as Page parent
- How to Remove Certain Screen Options and Table Columns from post type in wp_list_table?
- How to add a post from a custom post type as the static page?
- Redirect after deleting post and keep track of pagination
- Localization For Two Different Regions/Domains with the Same Language
- Custom Posts on Different Pages
- Add comments meta fields to comments metabox on post edit screen
- Pagination with custom loop
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- remove_action conditionally for Custom Post Type
- Assigning a role to a specific custom post type (and ignoring other post types)
- Display posts in random post types
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- How do you output custom code between posts in the loop?
- wp_get_nav_menu_items wp-admin/customize.php problem
- How to get Custom Post ID by adding filter to child theme’s function
- Remove All, Published and Trashed Post Views in Custom Post Type
- WordPress if in term*
- Weird problem happening with custom taxonmy when creating/updating posts
- CPT: if more than X images are in post, use pagination
- Disable featured image
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Conditional Query of Custom Post Type and custom taxonomy
- Meta query for custom post type ignored in main query
- Custom Path/Folder behind a custom post type
- Query Multiple Custom Posts by Custom Fields
- Allow Static Page Load Dynamic Child Pages
- Structure of data : CPT + terms
- Default text in a specific post type, but not visible?
- How to remove post listing page for a custom post type
- How to include term custom meta into the custom taxonomy term permalink structure
- Page for custom post type
- Ordering Submenu Pages in WP 3.1
- How to customize work area / admin area in a custom post type without plugins?
- Can I change my post type to anything and my site still work?
- Change “empty trash” button text?
- Move Genesis Single Page/Single Post Title
- Merge page with custom post type
- Hide Status Option From WordPress Publish Metabox and Rename Published on:
- WordPress custom API endpoint – how to make the request more flexible
- How to Create a Separate Page for Blog Posts in WordPress
- Add custom columns in custom post type browse page
- meta query not retrieving posts
- Create custom WP_List_Table in post_type
- CMB select with data from CPT
- Am I mixing up the concept of posts pages and categories?
- Tag template not returning posts [closed]
- Why doesnt my tag page populate with this custom post type?
- Problem with customize page cached in WordPress.com [closed]
- date_query empty results with custom post type
- Multiple categories assigned to a single product breaking the breadcrumb
- How to set a ‘page’ as parent of a custom post type?
- Adding a location field to buddypress activity
- get_posts() returns empty on custom post type /wp-admin/edit.php
- How can I assign multiple parents to CPT?
- Getting 404 on child page with pre_get_posts() on custom posts
- How to make “single post” permalink maintain it’s sub-page structure
- Stored meta from attachment, video length?
- Limit posts per page depending on the size of a div?
- Delete Post by User
- save_post affect creation and deletion
- Include images from pages in wp search.php results in default wp search
- Set a static page as a user profile page?
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- WordPress Contents Migration
- Problem to get the link of the default ‘post’ post type like the orther custom types
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- How to keep a CPT stick to specific position?
- Help ordering custom query by Title, Ascending
- WP_Query for CPT with filter by another WP_Query
- Use the page picker from wordpress menu creation page
- Get data from custom post type to another custom post type?
- Using get_terms() as shortcode attribute
- Problems with a custom meta_box
- Multiple Block Quotes without using HTML
- How to apply order on custom taxonomy and custom meta key on custom post type
- How to make a template for a specific post of a custom post type?
- Bulk update custom post types
- How do I hide single category post on my post page
- Set a Custom Post Type as a Homepage
- show custom post’s post in two different divs [duplicate]
- ACF select box css color change
- Creating post custom field text area
- How to add a regular page under a custom post type?
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- is therer any wordpress function to retrieve a specific html element from post content
- How to display *block number* instead *date value* on WordPress posts?
- An script/Plugin for automatic page creation per term