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?
- Trying to Find the PHP File/Function that Handles a Specific Form Action URL
- How to export comments in WordPress?
- How can I call a function from one plugin within another plugin?
- Publish author posts only with editor approval?
- Customizing subject in comment notification e-mails
- Generate Advanced Custom Fields box in custom admin menu page
- How can I rewrite a plugin generated URL?
- jQuery Plugin to use WordPress functions in AJAX request
- Debugging Technique Question re: functions.php
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Custom Taxonomy Tag Search
- I have functions in my wordpress plugin. How do I get them to work for me?
- Why slash is removed after domain?
- Edit Yoast SEO breadcrumbs output [closed]
- Plugin appends ugly URL string to index
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- Facebook Messager Plugin
- Difference and examples of esc_attr__() and esc_attr_e()
- ACF: post query, hide duplicate values [closed]
- How to prevent additional code in functions.php to be removed once there is an update?
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- Proper way to use plugin functions in functions.php
- Adding custom meta boxes to specified custom post type
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- Woocommerce singe product custom gallery output works just on the first slide
- strange shortcode error: does shortcodes requires any dependency?
- All custom widgets are not showing in widget area at the same time
- How can I store data from custom fields to custom tables?
- Custom post type change excerpt more and excerpt length
- Replace video url with video player
- Order posts of a custom post type by the event date using FT Calendar Plugin
- hardcoded wp pages/plugins problems
- Checkbox show / hide output result
- How to keep plugin (media-sync) running even the tab is closed?
- Load CSS before Theme CSS
- Need to edit author permissions | custom taxonomy
- Custom Logo Link WordPress
- Where do I put the code snippets I found here or somewhere else on the web?
- Is it possible to pin a post in second position from top
- How to convert Currency from USD to other IP Based currency in Php function
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- Attempting to list all product categories and the price range of all products within them
- Error in Fetching Custom Post Type parent Category URL (slug)
- Creating an array from form inputs before it is posted to the options database
- function post to trash problem
- How to assign a specific service to a specific provider based on location
- Conditional Homepage for logged in user
- how to include my homepage and scc in to a plugin
- how to convert frontpage.php to dynamic page?
- Creating custom “player-objects”
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- Nested DIV’s across functions in PHP, do not seem to work
- AJAX login without a plugin does not work. when add a action to function.php
- Hide some portion on single.php base on author
- Displaying image from a repeatable group
- How to add a handler for a button in plugin?
- What method should I use for a sidebar widget that reads latest posts?
- Custom Function for SEO by Yoast plugin
- Building custom pages with a video player
- Is a custom post type considred a plugin?
- Sync roles across several plugins
- Custom post type with custom taxonomies structure url not working archive of CPT
- How to export post tags from wordpress
- Show WooCommerce products based on query parameters on redirect
- How to access the page without registering in wordpress
- CPT template is not being automatically used single post pages
- Secure way to add JS Script to WordPress filesystem
- My site has only one page, and users access my uploaded mp3 files from there – can I analyze access by song title?
- How to access a function declared in child theme’s functions file in a plugin file?