At the end of your news.php, use wp_reset_query()
. This will revert to the default query for that page.
Hope this helps!
Related Posts:
- Why do I need to use The Loop on pages (inside page.php etc)?
- posts page – different lengths of excerpt
- Multiple loops in same page, without duplicate content
- Differentiate between posts and pages in search results
- page.php showing loop of posts and not page content
- Display Posts on Custom Page
- Multiple Loops Breaking Pages
- WordPress Query Posts From Category Post on Static Page
- Pagination for normal (standard) posts on a page with a custom loop?
- Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?
- posts going to 2 pages/categories only show up in 1
- How to distinguish pages created by woocommerce?
- Posts are not showing up on next page.
- Where are my posts linked to? I keep getting a Not Found Error, and I have no single.php page
- The loop: more posts than I want to fit on one page
- Redirecting posts in WordPress to a specific page
- When and how will php code in a user made WordPress page be executed?
- What function does the loop of displaying posts?
- Print Current Post Index number within Loop
- Get current menu_order
- Get content from one page and show it on another page
- Post/Page Publish/Update button not clickable once I make an edit
- rewind_posts() – what actually the use of it, and where using is required or preferred?
- Custom Field in Featured image for A particular post
- How to show list of posts by author and category?
- WordPress Number of Posts Not Changing With posts_per_page
- Find most recent authors
- Is it possible to show a different WP menu when using password protected pages?
- Include related posts on a page
- why does HTML Tag not working in Post and Page
- How to Display Post View Count
- problem to delete page
- Displaying the number of posts in a custom loop (without including the number of posts of a loop below)?
- Redirect before post page
- The correct way to call posts with ajax
- Converting multiple loops into one single loop with pagination
- How would I get 1 latest post from a query for 5 posts?
- Alternating post layout
- Check to see if specific loop has less than certain amount of posts
- Single post as homepage?
- How can I pass the ID of a post to a page template by clicking a url?
- Exclude category from
- How to exclude latest x posts from a paginated query?
- Pausing and Resuming WP_Query results
- 301 (static page instead latest posts)
- How to : pagination in 3 different custom loops on the same page
- Sharing post from archive page (loop) doesn’t work
- Change all author links in Blog roll
- Showing categories and subcategories with posts
- is_page Funtion for Posts ?
- Admin – no Featured image choice in create new/page|post
- older blog posts not showing in new theme
- Intercept page request and add value to it
- Loop through posts? Want to remove extra newlines in actual post HTML/content on backend
- Output Post with ACF Fields into other Post
- WP_Query: Show 10 posts in date order, first three random
- get_children returns older images
- How include css class based on post ( in loop ) slug?
- WordPress Loop: How to display recent posts in multiple divs
- Detecting current page from class method
- Cannot implement byline into posts container in single.php
- Optimizing the blog loop
- How to check if there are posts with the same tag
- Change Author Name to Sitename on Frontend
- Showing recent post of category in page
- WP_Query of Category Not Showing First Post
- How come this loop is not working? [closed]
- Have posts included on a page that share same category
- Preview page/post revisions without overwriting current content
- Link from Post to Another Post Via Clicking on Words within Original Post
- Using the loop to set locations for all posts on a single google map
- Link to older links
- What would causes search to return incorrect results?
- Edit post & page option does not display on latest wordpress
- Separate top level categories on archive-product.php by meta
- While loop in functions.php outputting the_title() of each post on frontpage
- Shortcode for Comments and Comment Boxes in Post Loop
- Permalink Short code showing unnecessary link text inside the loop
- Add CSS and JS files of the template post on a WordPress page
- Can’t find webpage on All Pages or All Post menus
- how to put post customized in page
- Show code only on WooCommerce Pages
- Very weird behaviour after removing WP pages
- Double loop output
- Multiple Pages – Seperate blogs
- post->ID displays the same ID number for every post
- How to give priority to page than to posts permalink structure?
- Post are not showing up
- How to make post button to a random post
- Display only current page -> posts tags in page
- Make assigning post to a specific category equivalent to assigning it to all categories
- How to mix pages and sub-categories in a url
- Make a custom URL and link to custom Template
- How to inject a post within a loop
- what template-part to call, to have my post in the center of the page?
- Posts and pages not getting published
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- posts_per_page – Repeats only first posts ‘post__in’ array
- Cannot Create a new Post [closed]