salve vorrei che la funzione cerca di wp non mi cerchi in tutto il sito ma solo tra gli articoli( post ) e quindi che la ricerca mi dia come risulatati solo articolo e non pagine.
questo è il php:
<center><form id=”search” method=”get” action=”<?php bloginfo(‘home’); ?>/” >
<input type=”text” value=”” onfocus=”if (this.value == ”) {this.value = ”;}” onblur=”if (this.value == ”) {this.value = ”;}” size=”18″ maxlength=”50″ name=”s” id=”s” /><input class=”btnG” type=”submit” value=”” />
</form>
come dovrei fare?