• Resolved jhinkemeyer

    (@jhinkemeyer)


    How hard would it be to change the code so that when someone clicks on a tag from the accordion In stead of going to https://s428742355.onlinehome.us/TNBWP/tag/motorguide-xi5/ they go to https://s428742355.onlinehome.us/TNBWP/tag/motorguide-xi5/?s=+&cat=40.

    Basically this is the link that makes this tag cloud/tag accordion category specific.
    I have 4 categories and don’t want viewers to click on tag from accordion on videos page and get results from videos, articles, Q&A, ect…..

    Is this a easy fix to the code? or is it a complete spin of plug-in Tag Groups
    “now with specific catigory results” ?

    Otherwise I have to take the html and add that little search string manually to everything.

    thanks for your time. (if big project, shot me a quote, I forward to boss man)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Christoph

    (@camthor)

    It is not difficult to modify the code and append something to the link, but you would have to renew these changes after every plugin update. (Unless I introduce it as a new option to the default plugin … if you don’t need the new feature immediately.)

    Just to make sure that I understand you correctly: Where does the “40” come from? Do you want to add exactly the same “/?s=+&cat=40” to every tag link from that accordion, or do you want different categories depending on the tag? In the first case it would be possible as a new default option that you add to the shortcode. If you can enter on each of the mentioned pages “videos”, “articles” etc. different shortcodes, then you would simply add a different number for each “cat=” so that you set the right link for each page manually.

    If you need to generate the number like “40” automatically, it would be more complicated. (E.g. using the page title, …)

    Thread Starter jhinkemeyer

    (@jhinkemeyer)

    40 is the categories ID number. Its used in search to narrow down results to that specific category.

    I have category ID #’s (that WordPress auto generates)
    Videoes = 40
    Articles = 480
    Total Solutions (special articles) = 507
    Q & A = 482

    on each page video, article, total solution, Q&A. I would like to have accordion that when clicked on tag just goes to the search of category from page you where just on.
    “so if on videoes page I want /?s=+&cat=40 added, then on Q&A I want /?s=+&cat=482 added.

    I am pretty sure I can do it via html but did not know if there was a easier way with in your code.

    thank you,

    Christoph

    (@camthor)

    If video, article, total solution and Q&A are (ordinary, not archive, tag, category, …) pages and if you have the possibility to use a different shortcode on each page, then I could plan for a new version a parameter that lets you add something to the end of the link.

    Thread Starter jhinkemeyer

    (@jhinkemeyer)

    ya they are just pages. Let me know I know bosses want to go live next month. I don’t know if I can make it in time.

    I have to hire someone to problem shoot a bunch of things I can’t figure out.

    Christoph

    (@camthor)

    I think it can be out very soon, just need to do some other work first. Matter of a few days.

    Christoph

    (@camthor)

    The option is available in the latest version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing the code for catigory only results’ is closed to new replies.