WP Menus do not appear on WP Events Calendar Pages

Home Forums Calendar Products Events Calendar PRO WP Menus do not appear on WP Events Calendar Pages

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1146025
    Sunny Bains
    Participant

    The custom there we are using has two menus; ‘header’ and ‘footer’.

    On every page of the site except events calendar pages they work fine. On the events calendar pages they do not appear at all.

    Digging deeper into this issue …:

    the function get_nav_menu_locations() gives the following results on all pages:

    array(2) {
      ["header"]=>
      int(3705)
      ["footer"]=>
      int(114)
    }

    using the function wp_nav_menu( array('menu' => 3705, 'menu_class' => 'main-menu', 'theme_location' => 'header' ) ) on the non events calendar menu pages currectly pulls the menu, but on the events calendar pages we get nothing.

    I’ve looked at the database and the ‘nav_menu’ taxomonmy relations all look correct as do the ‘nav_menu_item’ posts

    Do you have any advice on how to get this working?

    #1146290
    Cliff
    Member

    Hi again, Sunny.

    The yoursite.com/events page is actually a WordPress archive page for the “tribe_events” custom post type. Your theme might not have a setting for how to handle this.

    You may need to ask your theme’s support for how to display your site’s menus when on a “tribe_events” custom post type archive page.

    Please let me know what you find out.

    #1146480
    Sunny Bains
    Participant

    I found the issue with this:

    In adding a custom tax query in functions.php I was excluding the filter for archive type rather than post type … all sorted now.

    #1146730
    Cliff
    Member

    I’m glad to hear that. Thanks for the update.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘WP Menus do not appear on WP Events Calendar Pages’ is closed to new replies.