2012-04-21, 17:05:02
@Robzilla, @Angryboy:
If you have a search result call in the template, just make sure to specify tags and words, then the results will not be influenced by form parameters, e.g.:
(The words parameter is one or more blanks, which is thus not empty, but still contains no words)
@Robzilla: all search calls (searchform, searchresults, searchrss) should have the same search parameters (tags, addtags, words, addwords):
tags specifies the keywords to use, while addtags specifies the tags to add to those given by the user.
If in you example you show the tag cloud and the user selected a tag (-> tags parameter), it would be ignored in the results, as the tags are already set.
If you have a search result call in the template, just make sure to specify tags and words, then the results will not be influenced by form parameters, e.g.:
Code:
<?php get_i18n_search_results(array('tags'=>'news', 'words'=>' ', ...)); ?>
@Robzilla: all search calls (searchform, searchresults, searchrss) should have the same search parameters (tags, addtags, words, addwords):
tags specifies the keywords to use, while addtags specifies the tags to add to those given by the user.
If in you example you show the tag cloud and the user selected a tag (-> tags parameter), it would be ignored in the results, as the tags are already set.