Support » Plugin: Ajaxy Live Search » Search URL on shortcodes not working

  • Hi,

    I’m having problem with custom search Url. It works when you change it on General settings, but if I generate shortcode it defaults to Url from general setting.

    I’m trying to call the search from template like this for eg.:

    <?php echo do_shortcode('[ajaxy-live-search post_types="freebies" label="Live Search..." iwidth="180" delay="500" width="315" url="http://teetoolkit.dev/?s=%s&post_type=freebies" border="1px solid #eee"]'); ?>

    But it just doesn’t work. Can you please offer advice?

    Thanks

    https://wordpress.org/plugins/ajaxy-search-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Naji Amer

    (@n-for-all)

    searchUrl and not url, try it

    I’m having the same problem. Tested with the change suggested but that did not work.
    My problem is that I’m using WooCommerce. Your plugin works fine, unless you do not hit enter or click the magnifying glass. Always redirects to “/?s=%s” when I would like to redirect to “/?s=%s&post_type=product”.
    How to proceed?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search URL on shortcodes not working’ is closed to new replies.