简体   繁体   中英

How to change the 'Projects' permalink to the Category of the post in Wordpress

I would like to change the permalinks for projects to use the specific post's parent category name. Is this possible? I have come across a few tutorials via Google, though none seem specific to this cause.

I am currently using the Wordpress Projects section for Events and a Menu (restaurant). I would like the URLs associated with the posts in each of those categories to be /events/post-name and /menu/post-name

From:

www.website.com/projects/post-name

To:

www.website.com/events/post-name

www.website.com/menu/post-name

The Yoast SEO plugin can help you for doing this kind of URL manipulation.

Also, it seems you need to create Custom Post Types for your different kinds of contents. In your case, you can create an Events post type and a Menu post type.

There are several plugins available to help you with Custom Post Types, for exemple: Custom Post Type UI , Toolset Types ...

And this one: post-type-switcher can be useful if you want to transfer your existing content in a newly created Post Type.

Hope it will help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM