The function wp_reset_query() should help http://codex.wordpress.org/Function_Reference/wp_reset_query
Related Posts:
- Recent posts on a static home page
- How do I put my frontpage featured image in a page template for home.php?
- Custom Page Template and Category Exclusion
- When to use is_home() vs is_front_page()?
- Do I need to use The Loop on pages?
- Remove the Homepage Query
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- Ways to have multiple front-page.php templates that can be swapped out?
- Pagination not working on home page
- Loop.php vs looping inside template file
- is_home, and is_front_page conditional problem
- How to redirect WordPress home page to custom static HTML page
- How can I create an alternative home page?
- Is including the loop necessary for page.php? [duplicate]
- When and Why is is_singular(‘my_cpt’) true while in_the_loop() is false?
- How do I prevent one of two multiple loops from repeating on a second page?
- How to create custom home page via plugin?
- Show newly added posts since last user login time /date
- Pagination Not working on Home Page with 2 Query
- loop not showing up when using a custom page template
- Custom page template
- Getting page ID inside loop
- Theme’s page.php and index.php template files are confusing me
- Output shows a page instead of a list of blog postings
- How do I override part of the main loop in my child theme?
- WP Multisite Static Frontpage
- Get Pagination (WP-PageNavi) not to work
- Static Front-Page Excerpts
- Loop and Page template : my WP_query don’t take args
- Better way to display posts from specific categories, in a grid layout
- Create static front-page with 3-5 recent posts
- Create a loop that gets pages with their template
- Running a loop with a custom query string on a custom page template
- Loop first six posts in carousel, next eight in grid
- Displaying recent post excerpts on static front page
- How to load all pages into one page with their templates
- Detect if current page is front page within custom query
- show random image in loop if image is not set
- Custom Loop Using Shortcode in Custom Page Template
- Do I need to use The Loop on pages?
- Split wordpress loop to multiple layouts
- My custom template page not loading content inside it?
- How do I automate multiple category loops?
- Multiple get_posts() queries on one page
- is_front_page and is_home are not working in page.php
- get_delete_post_link() inside Loop stubbornly returns nothing
- Display post formats differently on index.php (loop in function)
- WordPress loop not working only on home page, works on all other pages
- Frontpage pagination by week
- Integrating WordPress with Your Website
- How to create a custom WordPress front page
- Problem with Front-Page.php loading recent posts
- Print the whole page?
- excerpt not showing up
- How to remove/replace current page template?
- WP_Query is only looping home page, not pages
- Pagination for two loops
- Skip 5 latest post while paging?
- Custom Header added within Dashboard pages, is this possible with custom template files?
- Duplicated tag in loop
- get the value for ALT is we check to see if an actual ALT value is set, if not we use the caption and if no caption is set we use the title
- My WordPress installation doesn’t load correct template
- How to detect if some page template has been selected
- Homepage Loop Somehow Breaks Styling Of Post Grid
- Wonderflux Framework Static Homepage
- Echo Most Recent Sticky Post in Loop?
- Use page.php for front page
- How do I aproach this?(for sale, for lease, sold->move something from a category to another)
- Display single post inside accordion based on form submission results
- get_template_part() to render single page Theme
- Display articles related to a custom field on a page
- Stuck with conflicting loops on page template
- Setting Custom WordPress “Posts page” AS “Front page”
- trying to write a variable into a wp_query, need help!
- Same Loop on Multiple Pages
- display only parent replies count in index.php
- 2 loops in blog homepage
- Loop not showing up on page template
- Change the way wordpress outputs images or image galleries
- Displaying posts limit: can’t get pagination to display [duplicate]
- Home page loop with pagination problem
- How wp maps urls into files
- Different style for first two (sticky) posts
- Limitless amount of posts in custom archive page
- Display all posts in a page code for template
- Counting the posts of a custom WordPress loop (WP_Query)?
- Is there any difference between the_title() and echo get_the_title()?
- WordPress Loop Through Particular Pages
- Chopping up a large ajax request of around 200 posts [closed]
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- How do I display an image before the first post of the loop when I’m using get_template_part?
- Escape current post from loop
- Why the first with flexslider appears as blank on my code?
- Rendering pages
- How can have a conditional template tag based on the main loop within a secondary loop with new WP_Query(), using get_template_part()
- Adding a second loop breaks everything
- Custom Query with Sticky Posts
- Return only one post format in index.php [duplicate]
- How to show the posts list into a static page? Problems to use the loop into a static page
- Return only content in excerpt field in loop