Hijacking Tags Search

Home Forums Calendar Products Events Calendar PRO Hijacking Tags Search

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #960672
    Ryan
    Participant

    It seems your plugin is hijacking the tag cloud search on my site. I found this thread in your forums where others seemed to be having a similar issue:

    3.2 breaks/hijacks tag archives

    I noticed in this thread that there was a developer reply with a code snippet to fix this problem, however I cannot see the code snippet. I’m not sure if it has been deleted or if something else is going on that isn’t allowing me to see it, but it would be super helpful if you could send me that code or let me know if you have since found another solution.

    Thank you so much!

    #960788
    Geoff
    Member

    Hi Preston!

    Here’s the snippet that the other thread referred to. Give that a shot and let us know if that helps. πŸ™‚

    Cheers!
    Geoff

    #960801
    Ryan
    Participant

    Thanks! And just to be sure, does this code get pasted into the functions.php or somewhere else?

    #960806
    Geoff
    Member

    You’re spot on–it goes in functions.php. πŸ™‚

    It may or may not need the the opening PHP tag, depending on how your functions file is formatted.

    #960836
    Ryan
    Participant

    I was really hoping this would do the trick, but it seems even after pasting this code in the problem is still not fixed. Is there any other solution to this problem?

    #960870
    Geoff
    Member

    Hey Preston–thanks for following up!

    Can you elaborate a little more on how Events are hijacking Tags? I tried setting up a Tag Cloud widget on my local installation and the widget appears to be working as I would expect with Posts and Events. Is it that you want tagged Events to be removed from the widget’s filter altogether?

    Thanks!
    Geoff

    #960879
    Ryan
    Participant

    Here is the page I am working on: http://ncsml.org/oral-histories/

    The tag cloud is nested in the accordion near the top labeled “Search by Key Words”.

    I have also set up the tag cloud on a separate page here (to make sure the accordion isn’t causing the error): http://ncsml.org/tag-cloud-test/

    When a tag is clicked, no results come up. That is because the events calendar is “hijacking” the search to only search events’ tags. It isn’t that I necessarily don’t want events coming up in the search, it is just that we are mainly using tags to sort through portfolio posts. Each tag in the tag cloud is attached to at one portfolio post and yet the search results are coming up empty because it is only searching the events.

    Hopefully I am being clear. Let me know if I can clarify any more or if you need any other info from me.

    Thank you for your help!

    #960971
    Geoff
    Member

    If I didn’t mention it already–nice site! I love how it’s coming along. πŸ™‚

    Thanks for helping elaborate on this. That helps a lot.

    I tried using the Tag Cloud widget on my local setup and it seems to be working well with both posts and events there. I see you noted having tried activating a default WordPress theme (like Twenty Fifteen) and deactivating all other plugins. Did you happen to see any difference under those conditions? How about when you activate a default WordPress themeΒ and deactivate other plugins together?

    These steps are outlined in greater detail here. When you test, I think it would be a good idea toΒ re-save your permalinks each time and make sure the site’s cache is flushed, if it uses caching.

    Let’s give that a shot and see what we find. πŸ™‚

    Cheers!
    Geoff

    #961005
    Ryan
    Participant

    Thank you for the compliment on the site. πŸ™‚

    I have tried deactivating all plugins and switching to TwentyFifteen. I tried each separately, and then also both at the same time. Unfortunately, in all 3 scenarios I get the same result – the tags are still not pulling up any results. (images below)

    Default theme active, tag cloud page

    No Results, default page active & plugins deactivated

    I know that doesn’t seem to get us any closer to the solution. This has me stumped!

    #961130
    Geoff
    Member

    Shoot! I thought that would help us find something.

    I don’t want to fully rule out the possibility that some sort of caching is preventing this from working properly. I see you have both W3 Total Cache and Yoast SEO installed. Does your hosting provide any additional object caching? Either way, let’s try clearing the cache out from all those sources, deactivating them and trying again.

    If that doesn’t reveal anything, then I think our next best route is to set up a clean install on a test server. Let me know how clearing cache goes first before we head down this road, and I’ll provide you with the steps, if needed.

    Cheers!
    Geoff

    #961134
    Ryan
    Participant

    This reply is private.

    #961156
    Geoff
    Member

    Hey there, Preston!

    Thanks for working with me on this so far–I appreciate your help and patience. πŸ™‚

    I know that the thread you referred to in the beginning seems similar (and it is in some regards), but it appears to cover a different issue. Your tag archives are not 404s and no posts are displaying, whether they are posts or events. So, we need to troubleshooting this one differently.

    The test site you have up is great, but I want to scale it back even further. The next thing I would like to try here is creating a fresh test site–this will avoid any disruption to your live site and ensure that we’ve effectively got a “clean canvas” to work with.

    • Please install a fresh copy of WordPress in a subdirectory (if you have cPanel hosting account there will probably be a one-click install to make this really easy)
    • Don’t install anything except The Events Calendar, Events Calendar PRO and Community Events
    • Please also stick to a default theme–again, there’s no need to install anything else just yet!
    • Create a few events and default posts–both with tags–so we have some test data to work with
    • Can you replicate the same problem?

    If you find you can replicate the problem under these conditions it would be awesome if you could stop and let us know so we can take a look while the site is still running under default conditions.

    Thanks for your help!

    Geoff

    #961182
    Ryan
    Participant

    I wanted to share this with you:

    https://www.dropbox.com/s/gzt13mh98nt5i5y/NCSML%20_%20Journalism%20Archives%20-%20NCSML.pdf?dl=0

    It is the output from the Query Monitor plugin, which includes a ton of debugging information. I think it might make more sense to you than it would to me. Maybe there is something in there that is pointing to the problem.

    I also wanted to make a note of something that may or may not make a difference – none of the events on the site are tagged. So, I still think the problem is that it is only searching events and displaying those results (which just happen to be no results because no events have those tags). I will do a test of this by adding some of the common tags to an event and seeing if the tag cloud then pulls up that event. I will let you know my results!

    Thanks again for your help on this!

    #961294
    Geoff
    Member

    Thanks Preston! Definitely keep me posted on the progress with the fresh install–I’ll be interested to see how things work in a default condition. πŸ™‚

    Geoff

    #961468
    Ryan
    Participant

    I set up the test environment here: http://www.ncsml.org/test/

    I added two posts and two events and the tag cloud search does appear to be working. What is the next step in this test?

    I also added some of the tags to Events on the actual site to test out if the tag cloud search was just not working altogether, or if it was just only searching the Events posts. The event I tagged did come up in the results, but no other posts did. (screenshot below)

    Event Result

    One other thing I noticed is that the tag search is also being affected on the backend. The tags are shown with the “Count” beside them, but when the count is clicked on it only brings up Events tagged not all posts with that tag.

    backend tags

Viewing 15 posts - 1 through 15 (of 26 total)
  • The topic ‘Hijacking Tags Search’ is closed to new replies.