This function can be placed on a regular EE search results page. It reads the ID string from the URL and fetches the keywords. It then searches for entries that have tags matching the keywords searched on. An example usage of the Tag Search Results code would be to display tag search results alongside, above, or below the regular EE Search Results on the native EE Search Results page. All searches still must be performed through the native EE search form. This loop mimics the Channel:Entries loop, so you would construct the contents of it similarly.

This is a limited feature and is only supplemental to the native EE Search Results. If there are no regular EE search results, the Tag Search Results will not get displayed. If you're looking for a complete tag searching solution, you can try the Solspace Super Search add-on, which supports full searching on Tag tags.

{exp:tag:search_results} content {/exp:tag:search_results} 

Parameters

limit=

limit="15" 

This parameter allows you to limit the search results.

tag_rank=

tag_rank="clicks" 

This parameter allows you to display the results returned by the popularity of the tags found in them using this parameter. You can currently rank by clicks or total_entries.

where=

where="any" 

This parameter allows you to specify how to match the search, like native EE search. You can currently match by any, all, and exact_phrase on tag searches.

Variables

Most of the variables available in the Channel:Entries loop are available here.

Examples

The below code would be displayed on the native EE Search Results page alongside, above, or below the regular EE Search Results. This example in particular will match any search term entered, and order results by clicks.

{exp:tag:search_results
    tag_rank="clicks"
    where="any"
}
    <h2><a href="{permalink='articles/entry'}">{title}</a></h2>
    <p>{body}</p>
{/exp:tag:search_results}