I would take the current code you have and drop it into a page template called tpl-news.php or whatever you choose. Add the following to the header before your index.php code:
<?php
/*
Template Name: News
*/
//Add your index.php code here
//You can also use wp_redirect(home_url()) here as well if I misunderstood your question
Now, create a page called ‘News’ with a slug of ‘news’ and select the ‘News’ page template. That should do the trick for you.
I would also look at how WordPress template hierarchy works and build template files that target a specific category – Example: category-news.php would force this file to be used when the ‘news’ category permalink is viewed rather than the default archive template.
Related Posts:
- Can I hide a specific post from latest posts page?
- if I create ‘front-page.php’, then how do I link to post index?
- Include sticky posts on the static page front page
- posts not showing on index.php
- What file is the standard frontpage that lists all the posts?
- How to call posts under a specific category on static front page?
- WordPress loop not working on static front page
- Show posts on front page only
- Create a frontpage.php and static page template
- Use Post as Front Page
- How to show full post on home page
- “Home” Page now only displaying the single latest post
- Post not showing in the front page
- Category posts show on local install, they do not show on live server
- Category and Posts in front page
- Post as frontpage – avoid duplicate content
- Loop doesn’t display posts. It displays a link to the home page instead
- Stop Authors from submitting spam post
- How to display by default only published posts/pages in the admin area?
- Is there an if statement that can determine if a post in the loop is the last post?
- Can I load posts via Ajax?
- Custom colors for post rows based on post meta value
- All WordPress scheduled posts are being published immediately
- WordPress Delete hook with wp_delete_post function?
- Undelete post (untrash)?
- Delete Post From Front-End and attachment permanently
- Double count view in archive.php
- disable column on post and user list
- Multiple social buttons with a fast loading? [closed]
- How can I display widget in a Page or Post?
- Different style for most recent article
- How can I replace the text at the top of a custom column into a icon?
- count the total number of comments the user has received for his published posts
- How to Orderby Comments by post title?
- Multiple posts with fixed order position
- Display Meta Values in Custom Filter – Admin Custom Posts
- Get user categories with most posts in it
- How to display two blog categories as separate sections on one page?
- Retrieve post ID from “querying” URL
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- Thumbnail & Category link aside post
- My wordpress based site is publishing the same post twice
- How to make a sum of all posts displayed in a loop
- First x post with another template then the others
- Assign published posts to another user automatically
- add bootstrap post slider with tabs
- Show all posts shows a blank white page in WP 4.2.2 [closed]
- Fast publishing in wordpress
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- Add Blog to WP homepage Manually
- Get URL from all images in a post
- Getting property of non-object when looping through post objects from ACF
- How to get the ability to change the author of a post
- Defined function isn’t showed on page
- single post showing blank page in custom template
- How to enable custom Shortcodes in Post Category Description? [duplicate]
- Get total post from an author
- How to embed the content of one post into another site
- Prohibit saving a post without providing a title
- Limiting post list by taxonomy
- How to add tag(s) to all posts from a specific category? [duplicate]
- Standalone form does not post to the url when form fields are populated (otherwise it does)
- Will multiple category descriptions effect my search engine optimization?
- How to prevent to create same url of post, if the previous was deleted?
- Open posts in popup window
- How to merge the content of posts that have the same title?
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- ‘QTags.addButton: arg2 distorts the button rather than just shows
- WordPress Post 403 Error Based on Slug
- How to add first 3-4 post tags on WordPress Post Title
- WordPress React re-rendering to many times
- How do I assign an attachment to a post using only the REST API?
- How to add class to specific navbar item when post parent category is in specific category
- How to get unmodified post content?
- Posts are not displaying on their category and tag page
- Random post_id at wp_insert_post
- Sorting post by custom field and category
- WordPress display page information rather than post
- Post Category link is same with Page link
- I need show posts by customer (Shortcode)
- Show custom post category for single post
- How to delete all posts with dead image urls?
- Get a list of categories that are related to posts
- ACF Relationship – Get Parent’s Post Object
- Post Per Page For Portfolio
- How to modify specific parts of a post content in WordPress
- Pagination and Related Posts
- Loop through posts by each term and exclude duplicate posts assigned to several terms
- Change link to permalink inside post content
- Post thumbnail dependant on category
- Get post title of faulty link on 404 error page
- Is possible to create a custom link that creates a post that’s already categorized?
- How to change link with broken link?
- Change posts URL [duplicate]
- Only show posts with image and the correct ammount of posts in loop
- Related posts by searching post tags of single post as terms
- Get attachment if matches a variable
- custom sort posts in archive/taxanomy page
- Trying to create shortcode listing custom posts, but formating not being included
- Show some texts in posts belonging to Specific category