Categories
Technology

Hack the WordPress Search

Please copy and paste the code in your template or where you want and then print the $allsearch variable.

Please copy and paste the code in your template or where you want and then print the $allsearch variable.

$allsearch = &new WP_Query(“s=”.$yoursearchkeyword.”&showposts=-1&order=DESC”);

Here you can $yoursearchkeyword replace with your variable or keyword –

If you need more help contact us

cheers : -)

This entry was posted in Uncategorized on February 5, 2015 by Rndexperts.

Leave a Reply

Your email address will not be published. Required fields are marked *