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:
You need to subscribe to fully access this tutorial.