• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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:

Register for full access

Related Tutorials

  • Use Categories and Tags With Your Custom Post Type

AgentPress Pro Theme Custom Post Type

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems