Add this on your register post type function:
'rewrite' => array(
'slug' => 'news',
'with_front' => false
),
The “with_front => false” will remove the “blog” from the path.
Hope that it helps,
Cheers
Related Posts:
- custom taxonomy and custom post type url conflict
- Redirect to another page using contact form 7? [closed]
- Add .html extension to custom post type taxonomies
- Woocommerce different URL for every table placed in the restaurant
- Author Specific URL’s in WordPress
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Override plugin with functions.php
- Rewrite url without flushing the database?
- Best way to hook a custom url?
- How does WP handle multiple matching rewrite rules?
- How to make a proper custom post type link
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- How do I convert my WordPress website to be domain agnostic?
- How to rewrite URL and get the values?
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Dynamic URL Rewrite for Custom
- Change language on website and change currency with url query
- add_rewrite_rule to load different page, without changing URL in browser
- Create category for each user
- Hidden permalink different from displayed permalink
- Change custom rewrite rule when permalink is updated/changed
- WordPress drop domain alias
- Creating custom URL for async content
- URL RewriteRule doesn’t work when using WP Database Participants in my WordPress website
- Calling an custom field from theme option at the frontend
- How To Rewrite WordPress Pages URL Only?
- making a glossary with wordpress
- How can I process all requests for a given directory in a URL with my plugin?
- How to get the real address from a url (permalink)
- WP Job Manger change jobs url (NOT slug)
- How to change all the urls of the WordPress site?
- How to get a variable number of posts per post type on the main loop?
- Plugin update error message
- echo value from ‘select’ field type into page template using cmb2?
- add_rewrite_rule, plugin activation and plugin deactivation
- How to handel multiple checkbox field in the admin settings page with Settings API
- wp_insert_user – how to send verification email before logging in
- Set a User as Author of all ‘New Posts’ posted
- How to load a new template page according to a particular URL?
- How to get the custom page get_permalink?
- What is the function to get plugin base url in multisite?
- Code in theme functions.php faster than with a plugin?
- Custom Post Type causes Page Not Found
- Override the core function locate_template
- Trying to count the total number of paragraphs inside a blog article
- How to get post URL in the_content filter?
- Saving Custom Post types and fields to a custom table
- How to Create a Custom Plugin Permalink
- Building a store locator with google maps
- add_query_arg not working
- Inserting HTML tag with ACF into shortcode
- How to Display a Plugin function (content) on frontpage using index.php
- How to create user groups and allow custom posts and plugin modify/access to specific group?
- How can I create a custom shortcode that will return a custom post type by ID?
- Custom Post Types, URL rewrite on multiple CPTs
- All of my custom posttypes are 404’ing
- ‘No Results Found’ on single post for custom post type
- Making a Template for a CPT created by a plugin
- How to rewrite url for any specific taxonomy?
- How to create an input field, and base the output on spreadsheet data? [closed]
- Customize permalink wordpress category id
- WordPress randomly shows 404 errors
- Admin style for just one plugin in dashboard
- Load Javascript from Plugin in One Page Only?
- Custom setup of wordpress comments that are displayed
- How to keep variable `$post` to using in another file
- Custom url rewriting
- Overriding an Array in a Plugin’s Class/Function from functions.php
- Change Header (Logo) Based on Login
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- How can i list random author?
- Custom Post Type template for homepage
- Can you echo PHP code from a variable?
- Defining the value of a variable before a function?
- How to get custom minimum price in Woocommerce
- Best method of implementing compartmentalized custom post types on a multi-site network
- how to validate input field in wordpress generated with wpform plugin
- Remove custom taxonomy name from the slug – Custom Post Type UI
- The function called on the wp head hook becomes null
- custom post type get_posts() function not work
- Create multiple posts when a custom post is created
- Submitting form to PHP
- Cannot view Custom Post Type no matter what I try
- How use get_plugin_updates() function?
- how override a define
- How to disable/enable a plugin at a specific time
- register_activation_hook doesn’t fire at all
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- How to delete posts older than one year with post meta, post attachments and files?
- Rewrite in plugin
- Custom shortcode with dynamic rewrite
- Load wordpress enviroment for external content?
- How to structure plugin in to functions?
- Custom Post type plugin breaking the front page shows dashboard?
- How can i do custom author list?
- How to disable register and reset the password from WordPress admin panel?
- WP Members additional fields on user profile [closed]
- Integrate Razorpay quick payments plugin with contact form7 plugin
- wp_enqueue_script doesn’t load JS in plugin
- Rewrite rule taxonomy url with different values in one function