Skip to content

Instantly share code, notes, and snippets.

@axxe16

axxe16/template.php

Created Jan 29, 2020
Embed
What would you like to do?
limitare il cerca a un tipo di contenuto #wp #search #customize
<form class="searchform" role="search" method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input class="form-control search-autocomplete" type="text" value="<?php echo get_search_query(); ?>" placeholder="cerca" name="s" id="s">
<input type="hidden" name="post_type" value="prodotti" />
<button type="submit" id="searchsubmit" value="<?php esc_attr_x('Search', 'bst') ?>">Cerca</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.