Nav_Menus disappear in Events Search results

Home Forums Calendar Products Events Calendar PRO Nav_Menus disappear in Events Search results

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #50310
    Annette
    Participant

    Hi, When the archive is called for a Tribe Events search all the nav_menus disappear – I fixed this for my other custom post types via http://pastebin.com/bagTtCQ5 but this is not resolving the problem with the Events. Can you help us please?!
    http://www.leisurecourses.net/?post_type=tribe_events&dates=2013&dates=july-august-sept

    #50366
    Barry
    Member

    Hi Annette,

    It looks as though you might be using default (or “ugly”) permalinks and our plugins do not work nicely with those.

    Instead, if at all possible, can you switch to pretty permalinks (ie, the postname format provided by WordPress in Settings → Permalinks)? You can find more information on permalinks here:

    http://codex.wordpress.org/Using_Permalinks

    #50368
    Annette
    Participant

    Hi Barry, Thanks for the response but the website is using pretty permalinks already.
    The nav menus did disappear on other archive pages for custom post types, but I fixed that – it’s just the Event archives that are not showing the nav_menus now.

    #50369
    Barry
    Member

    OK. If you use pretty permalinks to access event listings is there still a problem? For instance if I use:

    http://www.leisurecourses.net/courses/upcoming/

    Instead of:

    http://www.leisurecourses.net/?post_type=tribe_events&dates=2013&dates=july-august-sept

    (Which is what you posted initially – and is an example of default permalinks) it looks as though the navigation menus are present? Does that help at all/am I misunderstanding the problem?

    #50374
    Annette
    Participant

    The nav_menus are there when you look at the standard template for an event or upcoming – so that is fine, but if someone searches for an event ((tribe_events) custom post type is included in site loop) the search results page (normally the archive page) is dropping the nav_menus.

    #50382
    Barry
    Member

    Hmm, ok. If I test this out and search on a test site using only our plugins and the default Twenty Twelve theme I don’t have this problem – searches such as:

    example.com/?s=search+terms&post_type=tribe_events

    Do not result in the navigation menu disappearing. I also find that even if the post type is not explicitly set (as follows) there is no problem:

    example.com/?s=search+terms

    Though matches are not then specific to events. Either way I can’t replicate what you are seeing. To go back to your initial post you cited the following URL:

    http://www.leisurecourses.net/?post_type=tribe_events&dates=2013&dates=july-august-sept

    How is that being built? Is it by custom code?

    #50461
    Annette
    Participant

    Visitors can search the events using a taxonomy search plugin – the nav_manus do not disappear when archive pages load for searches on the other 2 other custom post types – only the tribe_events

    #50482
    Barry
    Member

    OK, thanks for the info. The problem here is that if your search plugin works by building what is, essentially, a default URL (bearing in mind our plugin will not work nicely with those) we are going to hit something of a wall.

    If I take the query you posted originally and transpose it to a test site – which of course doesn’t have your search plugin and uses a default theme with a regular WordPress nav menu set up – the menu does not disappear and I generally can’t replicate the problem.

    So this does look like it is specific to your use of the search plugin and/or your theme and how its menus are implemented; I’m not too sure there is much further assistance we can offer you here.

    Have you tried to replicate this yourself with a default theme running instead of your custom theme?

    #51460
    alancoyne
    Participant

    Hi Annette,
    What search plugin are you using?
    Tks
    ALan

    #51472
    Annette
    Participant
    #51475
    alancoyne
    Participant

    Thanks Annette

    #51539
    Barry
    Member

    Thanks for answering Alan, Annette 🙂

    Did you have a chance to follow up with further testing against a default theme / do you need further support here?

    #51565
    Annette
    Participant

    Hi Barry, I’m still trying to find a solution to this – could you please keep this thread open for now ?
    Many thanks

    #51584
    Barry
    Member

    Certainly 🙂

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Nav_Menus disappear in Events Search results’ is closed to new replies.