Custom Taxonomy

Register Taxonomy

Suppose you created a Custom Post Type(CPT) named Portfolio and need a taxonomy for it named Project Type, Then code is:

Get custom template part if custom taxonomy

In your archive.php file, you will find ‘get_template_part( ‘template-parts/content’, get_post_format();‘. Replace it by following code:

Custom CPT Category / Taxonomy Listing

You can use it in any page template or archive page.

Leave a Reply

Your email address will not be published. Required fields are marked *