Add this after your endwhile
<?php wp_reset_query() ?>
Regards
Related Posts:
- How to get Images included in Post
- Accessing the post content with WP_Query
- disable password protected page for logged users
- How do I use inline SVG in WordPress
- Add link on the top menu of the post table?
- Get the object ID by URL
- Add a special filter link to All Posts in admin
- Custom Post Status Posts viewable to the public
- Add an image box besides featured image?
- Use Cron to modify posts via sql
- Pull posts from another wordpress install on same server
- Using Custom Posts with Metaboxes and Drop-downs
- Create pretty permalink for a post knowing the permalink structure
- Syndicated Posts when Updated Lose HTML tags
- How to insert current date/time in the content of a post?
- How to change the title url on the edit post screen?
- jQuery inluclude still seems ncessary for script to work within post
- White Blank Page when Updating and Publishing Page/Post
- Full Width Main Post
- Posts vs. Pages
- Plain permalinks not working!
- WP_Query Authors OR Categories
- get_the_content_feed with paginated posts
- Pass data between pages
- How to create large page
- How to get rid of shortcodes in post content once and for all
- Why is querying posts messing up my pages?
- How can I find out what items a user has purchased? [closed]
- Nothing Found error when creating new posts – how to correct this?
- Print all the tags from a custom post type Please
- WordPress Loop – Next 3 Posts
- Display multiple custom taxonomy values on single custom post types page?
- Underscores Theme Unit Testing – Catching Untitled Posts
- How to do set post permalinks using 6 digit random unique function?
- Encountering “Wrong nonce. Action prohibitied.” when trying to alter User Role and unable to Post via WP Admin
- Prevent scheduled post being published if date/time is past current date/time
- Is Hfeed class for all pages needed
- Set Default Category to Username
- Issue where WP Featured Image will not display
- Custom order for Mysql array
- All Posts admin screen – show time underneath the ‘Date’?
- Display post category in foreach loop
- Single.php – Get Current Parent Category
- Get all custom post types excepted some…
- insert a warning message into post-new.php
- WP text editor change html markup
- How to detect when admin user is on the All Posts page?
- preg_replace not removed “class”
- How to make different custom post layouts?
- Is it possible to give the user the chance to select between two single template files to use in a post?
- Modifying the following code to displaying the title and the content of static page Posts page?
- if in category but only with post meta
- Saving Post Data in Another Database
- How can I tell if a post has been published at least once?
- Insertion of a non-english string to database
- Add simple field column to the posts screen
- Current and next month posts
- Adding a meta box to determine the sidebar [closed]
- https and wordpress breaks posts
- Date is wrong on ‘all posts’ page
- Is there a way to display others posts in my post?
- How do I disable the “by author” hyperlink on posts?
- Custom post type slideshow background images to insert in a plugin
- How to call WordPress First Image Post or else Attached Image or Default
- Jumbled writing under a post
- Is there a way to define the $post var outside the loop?
- How do I keep raw HTML in my RSS feed and not lose my paragraph breaks?
- Hook save_post_cpt not triggered when custom fields are modified
- Featured Images most often doesnt appear
- index.php not getting blog posts anymore
- Why is WordPress showing a blank excerpt for just one of my posts?
- Is there a way to know when a page has been updated and do some action only once?
- Get category slug of the Parent category of a Product
- How to limit wordpress the_excerpt() dynamically
- Reuse old post ID for new post after deleting post
- Contact Form 7 Shortcode not recognized inside another shortcode
- WordPress Pods Custom Post Type – separate Media Upload folder for each custom Post Types
- WP posts using index.php instead of single.php
- Put page on Archived statut after end of publication date
- Excluding tag Link from html tags in Post content
- Display new posts categories in separated divs
- Add in the url attachment loop the wp_link_pages of the post
- Couldn’t view individual post that were in my website
- Point to a page when there is no results
- Get the category of post
- update post category in a new table on frequent change of category
- Edit Posts Page but not category specific pages?
- Show posts between two Custom Fields date
- How to display an icon when a new post is published and then remove it when a specific time past?
- How can add metabox for post of specific category before save post and after save post [duplicate]
- Problem with jQuery in post body?
- Posts page template: How can I edit the markup for this?
- Pagination working locally but not on live site
- Displaying different posts Via wp_list_categories()
- Should new posts already have tags?
- How can I display these posts in ascending order?
- WordPress limit post that subscriber can create
- Is there any point to using wp_unique_post_slug?
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- Trying to create parent for post. I need some help. Thanks