Reply To: Inserting shortcode into search.php

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Inserting shortcode into search.php Reply To: Inserting shortcode into search.php

#11565

Ernest Marcinko
Keymaster

Hi,

The do_shortcode() function call must be echoed, so try changing this line:

do_shortcode( 'wpdreams_ajaxsearchpro id=4' );

to this:

echo do_shortcode( '[wpdreams_ajaxsearchpro id=4]' );

That should give you an output.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)