Venue CPT and the WP-Types Toolset. Venue Post Type not public

Home Forums Calendar Products Events Calendar PRO Venue CPT and the WP-Types Toolset. Venue Post Type not public

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1122393
    media325
    Participant

    I’m looking to make custom archive pages for the Venue post type using WP-Toolset. I’ve run into an issue because the Venue CPT is registered as hidden but I can’t find where. Which page should I be looking on?

    #1122837
    George
    Participant

    Hey @Media325,

    Thank you for reaching out. Just to set expectations early up front, we cannot help with any customization-related questions, which I only mention because you mention trying to make custom archive pages. We’re also unable to troubleshoot issues that may arise from a third-party piece of software, which WP-Toolset is of course…you can read more on this stuff here.

    ☝️ While that information is true, I would love to help point out some general things here that might help. For example, you should be able to use the filter tribe_events_register_venue_type_args.

    While you will have tinker with the custom coding on your own, here’s a quick example of ensuring it is set to “public”, not hidden:


    add_filter( 'tribe_events_register_venue_type_args', 'media325_make_venues_public' );

    function media325_make_venues_public( $args ) {
    $args['show_in_nav_menus'] = true;
    $args['public'] = true;

    return $args;
    }

    Try adding code like this to your theme’s functions.php file or a custom plugin, and let us know if it helps!

    — George

    #1129320
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Venue CPT and the WP-Types Toolset. Venue Post Type not public’ is closed to new replies.