Support » Plugin: Search By Category » Put search form anywhere in a page or post.

  • jircas

    (@leifang)


    Beacuse the plugin base function bsc() uses
    “echo $form;” to display search form; the search form only shows up at page or post begining.
    But sometime we need to put search form anywhere in page or post.

    I change the code as follow:
    function bsc () {

    return $form;
    }
    function sbc_shortcode($atts){

    $form= sbc($focus, $hide_empty, $search_text, $only_cat, $excluded_cats, $exclude_child, $inall_exclude);
    return $form;
    }

    After this change, you can put shortcode [sbc] anywhere in a page or post.

    http://wordpress.org/extend/plugins/search-by-category/

  • The topic ‘Put search form anywhere in a page or post.’ is closed to new replies.