How to remove /blog/ prefix for custom post types in permalinks?
-
I have a client that used to have a static website and a blog powered from WordPress under the /blog subdirectory. Now he decided to move everything into WordPress so that he can also create and edit pages easily. However because the website is getting a lot of traffic and he already has likes, tweets and +1 in every blog post he wants to keep his blog under the website.com/blog. I thought it was as easy as heading over the permalinks and add /blog/%postname%/ in the permalink structure.
What the problem is right now is that I have a created a few custom post types to accommodate the needs of his content and custom post type’s content resides now under the blog virtual directory.
How can I specify that only the blog posts and the blog categories must be under the /blog virtual directory and everything else can use the permalink structure of /%postname%/.
[No bumping. If it’s that urgent, consider hiring someone.]
- The topic ‘How to remove /blog/ prefix for custom post types in permalinks?’ is closed to new replies.