filter post_typ
-
Hi Im using the plugin in 2 search forms the problem that I have is that for each one I need that the search is only in the posts and a custom post type, for that Im using a hidden input to filter but with the pluggin the search is better in content but ignore the filter, this is the code in the form:
<form id=”searchform” action=”https://sitename.com/” method=”get”>
<input class=”inlineSearch” type=”text” name=”s” value=”Buscar sedes” onblur=”if (this.value == ”) {this.value = ‘Buscar sedes’;}” onfocus=”if (this.value == ‘Buscar sedes’) {this.value = ”;}” />
<input type=”hidden” name=”post_type” value=”sedes” />
<input type=”hidden” name=”site_section” value=”sedes” />
<input class=”inlineSubmit” id=”searchsubmit” type=”submit” alt=”Buscar” value=”Buscar” />
</form>I dont know if I missing something with the plugin maybe an option or If I need to modify my code
The page I need help with: [log in to see the link]
- The topic ‘filter post_typ’ is closed to new replies.