Reply To: add ajax field onto the page

#5908

Dominik Lechner
Participant

<div id=”search-form-recipes”>
<form role=”search” method=”get” id=”search-form” action=”<?php echo esc_url( home_url( '/' ) ); ?>”>
<input type=”text” name=”s” placeholder=”<?php echo esc_attr_x( 'Suche hier alle', 'progression' ); ?> <?php $count_posts = wp_count_posts('recipe'); echo $count_posts->publish; ?> <?php echo esc_attr_x( 'Rezepte', 'progression' ); ?>” value=”<?php echo esc_attr( get_search_query() ); ?>”/>
<input type=”hidden” name=”post_type” value=”recipe” /> <!– // hidden 'products' value –>
<input type=”submit” value=”Los” id=”search-recipes-btn” />
<div class=”clearfix”></div>

</form>

</div>

</form>

</div>
[/php]