Add Taxonomy Term Slug To CPT Permalink

Add Taxonomy Term Slug To CPT Permalink

Author: WP Sites

Date: April 5, 2020 

Category: Theme development, Tips and tricks, Tutorials

(advertorial)

wprssaggregator Add Taxonomy Term Slug To CPT Permalink

This download folder includes the code which enables you to dynamically include the taxonomy type term slug to your custom post type permalinks on for single entries.

72949 CPT taxonomy term permalink slug Add Taxonomy Term Slug To CPT Permalink

Example : If your CPT is named HUB and you create a custom type named Blogging, your permalink will change from this :

http://example.com/hub/new-hub-item/

To this :

http://example.com/hub/blogging/new-hub-item/

The code included in this download :

Creates a custom post type named Hub. Creates a custom taxonomy named hub-taxonomy-type

This is the first part of the original article by WP Sites.
Click here to read the full article in a new tab!

(advertorial)

toolset logo tag line white Add Taxonomy Term Slug To CPT Permalink

Add Taxonomy Term Slug To CPT Permalink

World of WordPress is hosted by:

Servebolt: next level high performance hosting.

While others try to add more components to their hosting to make it go faster, we decided to build our hosting cloud fast from the ground up. We did so by stripping out everything we knew was deadweight.