Knowledge Base

Searching posts only within specific post tags

in Ajax Search Pro Tutorials Tags: post tagpostssearchtags

There is no back-end option for this feature, but can be easily achieved by a small custom code.

Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!

To find the Tag IDs, you can see them in the browser URL bar on the tag editor screen behinde the tag_ID= argument: