post_type name?

Home Forums Calendar Products Events Calendar PRO post_type name?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1137428
    Amy
    Participant

    Hi!

    I’m working with the Listings View in Events Calendar Pro, connecting it to a layout in my Builder theme.

    Here’s what it looks like now, without a layout: http://www.enamelcenter.org/events/list/?tribeHideRecurrence=1

    My theme support person gave me some code to work with, but I need the specific name you are using for the Event Calendar Pro post_type.

    In case it is helpful, here’s the code he gave me for the functions.php page (which has the theme’s post_type name in by default – it_bb_event – I need the name that is specific to ECP)

    function custom_filter_events_layout( $layout_id ) {
    if ( is_post_type_archive(‘it_bb_event’) )
    return ‘577e769e96d4a’;

    return $layout_id;

    }
    add_filter( ‘builder_filter_current_layout’, ‘custom_filter_events_layout’ );

    Thank you!

    Amy

    #1137545
    Hunter
    Moderator

    Hi Amy,

    Welcome back!

    The post type for events is ‘tribe_events‘. Try it out and see if that works. Have a good weekend!

    #1137552
    Amy
    Participant

    Thank you! It worked like a dream!

    #1137856
    Hunter
    Moderator

    Yippee! I’ll close the thread out but go ahead and create a new one if you have any more questions or comments. Enjoy your weekend!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘post_type name?’ is closed to new replies.