Add Categories & Tags to AgentPress Listings Plugin CPT

This PHP code enables you to add support for both categories and tags to the listing custom post type generated by the AgentPress Listings plugin.

Note: Code for adding categories and tags to custom post types registered via theme functions file will not work if the CPT is created from a plugin, hence the reason for the solution in this post.

This will add the normal meta boxes for categories and tags to all Edit Listing screens for single listings.

This code was tested on the AgentPress Pro child theme by StudioPress which requires the use of the AgentPress Listings plugin.

Here’s the code:

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.