Add Custom Category to Venues

Home Forums Calendar Products Events Calendar PRO Add Custom Category to Venues

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #964892
    Louis
    Participant

    Hi,
    I am trying to make a custom category for event in the menu called “Venue Categories”. The purpose is to use these categories to show “related venues” in a single venue page. Is this something that I can do with Calendar Pro?

    so far my code looks like this:

    function venue_category() {
      register_taxonomy('tribe_venue_category', 'tribe_venue', array(
        'hierarchical' => true,
    	'show_ui'           => true,
    	'show_admin_column' => true,
    	'query_var'         => true,
        'labels'        => array(
        	'singular_name' => _x( 'Venue Category', 'venue singular name' ),
            'menu_name' => __('Venue Categories', 'venue singular name')
        ),
        'rewrite'       => array(
            'slug' => 'venue-category'
        )
      ));
    }
    
    add_action( 'init', 'venue_category', 0 );

    I would appreaciate if you could point me into the right direction.

    #965091
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can try to help get you going in the right direction.

    That coding looks like it might work to create the venue category. Is it working for you?

    If you are having issues, this generator might help:

    http://generatewp.com/taxonomy/

    To add the venues to a single venue we have our themer’s guide to edit templates:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    Let me know if you have any follow up questions.

    Thanks

    #965196
    Louis
    Participant

    Thank you for your reply. The generator did the trick. Cheers!

    #965244
    Brian
    Member

    Great glad it helps.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add Custom Category to Venues’ is closed to new replies.