• Resolved RobertBrisbane

    (@robertbrisbane)


    Hi,

    I was wondering if it is possible to include the shortcodes on a search results page, so that eg a tag cloud on top of the search results page shows all the tags that are used in the posts that match a specific query / search result.

    I am not sure how I would go about including the shortcodes on the search results page.

    Thank you for a great plugin ??

    cheers,
    Rob

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Rob,

    This would be a bit more tricky. You need to modify the template of your theme (preferable the child theme so that changes won’t be overwritten with the next update) that corresponds to the search result page.

    Unfortunately these special pages cannot be modified with editors in the backend and you cannot use shortcodes in an editor.

    Then you need to write some code that takes the posts from the search results, loops through them and extracts the post tags.

    For all that, the Tag Groups plugin cannot help a lot. It’s more a question of modifying the templates.

    Thread Starter RobertBrisbane

    (@robertbrisbane)

    Hi Chris,

    Thank you for the prompt responds. Much appreciated ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Include Tag Groups in Search Results Page’ is closed to new replies.