Hello, I apologize for the issue you are facing with changing the permalink structure for custom post types on your website.
To change the permalink structure for custom post types (CPT) in WordPress, you can follow these steps:
- Go to your WordPress dashboard.
- Navigate to Settings → Permalinks.
- Click on the radio button next to the Custom Structure option.
- You can then set a custom permalink structure for your CPTs without including the “/projects/” part in the URL.
If you want to remove the “/projects/” part from the URL of your custom posts, you can set a custom permalink structure that excludes it.
If you have created a custom post type using CPT and want to change the slug, you can edit the slug for each individual post by following these steps:
- Edit the post in the Classic Editor or Gutenberg.
- Look for the permalink section where you can change the end of the URL to remove or modify the slug.
By customizing the permalink structure and editing the slugs for your custom posts, you can achieve the desired URL format without including unwanted elements like “/projects/”.
If you encounter any difficulties or need further assistance, please feel free to reach out. Thank you for raising your concern, and we appreciate your focus on SEO for your real estate agent website redesign.
Best regards.
Sources:
WordPress Permalink Structure & Changing Individual URLs » Rank Math
How to Redirect Posts After Changing URLs » Rank Math
What Is a Slug in WordPress? » Rank Math
Analyzing Your Site’s SEO with Rank Math’s SEO Analysis Tool
Thank you but I do not know where actually I can do this: “By customizing the permalink structure and editing the slugs for your custom posts, you can achieve the desired URL format without including unwanted elements like “/projects/”.” What should I do in order to exclude from my url the “/projects/”
Thank you
Hello,
Thank you for contacting us and bringing your concern to our attention.
You can change the permalink structure from WP Dashboard > Settings > Permalinks, and from there make sure to add only %postname%
:
However, you can also change the permalink for individual posts/pages from the Rank Math SEO Meta box.
For more details, you can check this URL: https://rankmath.com/kb/wordpress-permalinks/
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
Hi, I have done this previously, but this does not help at all. This is why I ask for help. It still has /project/ in the permalink, please see: https://testovaci.webdyzajnerka.cz/project/projekt4-test-permalink/. Even when I set custom structure as you kindly showed me (and I did it before). I was wondering whether this could be done somehow through rank math plugin.
Hope there is a way, I need this desperately.
Many thanks for help.
Kristyna
I think the issue is that this works only for posts, but I need to change the url structure for custom post types that are different from default posts in WP.
Hello,
Thank you for your patience.
Yes, you are correct. Unfortunately, Rank Math currently doesn’t support stripping CPT slugs/URLs.
In this case, you may have to use a permalink manager plugin like https://wordpress.org/plugins/permalink-manager/ to change the permalink structure of your CPT URLs.
Looking forward to helping you.
Hi,
that is great many thanks for your time and kind help. It works perfectly!!
Best wishes
Kristýna
Hello,
We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.