GD CPT Categories in Mega Menu

This topic contains 5 replies, has 4 voices, and was last updated by  Silvia Frati 5 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #441127

    Ann
    Full Member
    Post count: 84

    I’m using the GD CPT Categories widget to list down all the venue categories in a Mega Menu. I noticed that when I am in a venue detail page, clicking on any place category in the menu filters the resulting archive page by the location of the previously visited venue detail.

    Please check by going to this page:

    http://weddingdirectory2.designhubph.net/wedding-venues/country-club/

    … click on Stoke Park

    … then if you click on the primary menu Wedding Venues > Barns, you’ll see that the resulting page is already limited to the location Stoke.

    How do I make it such that the primary menu always returns all places?

    #441138

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    the widget has options.settings to disable the location filter, but it does not appear that Mega Menu plugin allows you to set them.

    https://wpgeodirectory.com/support/topic/mega-menu-2/#post-440038

    I can only recommend contacting the plugin author.

    #441145

    Guust
    Moderator
    Post count: 29970

    You can remove the location from the listings URL at GD > Permalinks.
    Then the menu will link to the “all locations” categories.
    Another option is to create the links in the menu as absolute links to the category pages.

    Thanks

    #441692

    Ann
    Full Member
    Post count: 84

    Thanks. I will implement as absolute links for now.

    #441735

    Guust
    Moderator
    Post count: 29970

    You’re welcome 🙂

    #444376

    Silvia Frati
    Expired Member
    Post count: 30

    I had the same problem with permalink but using standard WP menù pointing to GD category taxonomy. I really don’t understand the reason of doing that on permalinks (appending locations from previously visited places) since it gets pretty weird results and break some pages.

    Anyways my solution was this:

    remove_filter(‘term_link’, ‘geodir_get_term_link’);

    Searching the code there’s one more hook that seems to be doing something with menù permalink, for me the first one was enought tho.
    remove_filter( ‘term_link’, ‘geodir_cpt_term_link’, 9999);

    I don’t knkow yet if this brings any other problem behind but ATM everything looks working great. I have the nice SEO friendly URL when clicking on place detail and i have the normal-looking URL when clicking back on another category from the main menù

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket