custom searchform template
-
Hi,
Exclude these posts/pages from search:
Enter a comma-separated list of post/page IDs that are excluded from search results. This only works here, you can’t use the input field option (WordPress doesn’t pass custom parameters there).I wonder if there is a workaround to get this beautiful plugin to work with a custom searchform.
I have split my website to two versions/categories: Benelux and International
A person that selects “Benelux” on the startpage will be redirected to http://www.example.com/benelux or if he/she selects international http://www.example.com/international
Because its still the same website and not a multi-site the search result will still pull information from pages linked to benelux and vice versa.
I think the workaround is possible to make a benelux-search.php and international-search.php. But as stated above in the quote its not possible to use the input field option.
So i hope some one has an idea on how to get this resolved?
One idee would be to duplicate the relevanssi plugin and somehow define one plugin for benelux and one for international…
One other idee is to give all posts and pages a tag “benelux or international” (and use plugin Tag Pages) and let relevanssi only search on tags. Im not sure if this is possible with the current install.
Im using Sparkling theme from colorlib:
search.php(pagebin)
searchform.php(pagebin)
content.php(pagebin)
The topic ‘custom searchform template’ is closed to new replies.