To change the permalink structure specifically for a custom post type through the WordPress dashboard without coding, you can use the Custom Post Type UI (CPT UI) plugin, which allows you to manage custom post types and their settings easily.
Steps to Change the Permalink for a Custom Post Type:
Install Custom Post Type UI:
Go to Plugins > Add New in your WordPress dashboard.
Search for Custom Post Type UI and install it.
Activate the plugin.
Create/Edit Your Custom Post Type:
Go to CPT UI > Add/Edit Post Types.
If you already created the custom post type, select it to edit. If not, you can create a new one.
Set the Permalink Structure:
In the settings for your custom post type, look for the “Rewrite” section.
Set the “Slug” to whatever you want. If you want it to show just the post name (e.g., example.com/post-name), leave the slug empty or set it to something simple.
Make sure “With Front” is set to false if you don’t want to include the post type name in the permalink.
Save Your Changes:
Click the “Add Post Type” or “Save Post Type” button at the bottom.
Flush Rewrite Rules:
Go to Settings > Permalinks and click “Save Changes” to refresh the permalink settings.
Important Notes:
If you leave the slug empty, WordPress will automatically use the post name in the URL, but be careful with conflicts if you have other post types or pages with similar names.
If you want to keep the post type in the URL (like example.com/blog-post/post-name), set the slug accordingly.
This process will allow you to manage the permalink structure for your custom post type without needing to write any code. If you have further questions or need help with specific settings, feel free to ask!