Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bowe Codes


  • coolhunt
    Participant

    @coolhunt

    Hi @imath

    im trying to expand the [bc_members] shortcode..

    I want to be able to do a search term .. something like [bc_members search_term=’my-search-term’]

    Maybe something like…

    array( 'id' => 'search_term', 'type' => 'string', 'default' => '', 'required' => false, 'caption' => __( 'search results', 'bowe-codes' ) ),
    

    anecdotally — when i use the bowe codes in my theme with php echo do_shortcode("[bc_members]");
    it works with http://www.MyDomain.com/?s=search+term

    any thoughts

Viewing 1 replies (of 1 total)
  • Hi !

    Yes, you can try to use the existing filter bowe_codes_members_tag_featured_args to add the parameters of your choice.

    Something like:

    
    function coolhunt_filter( $args = array() ) {
        $args['search_terms'] = 'Your search terms';
        return $args;
    }
    add_filter( 'bowe_codes_members_tag_featured_args', 'coolhunt_filter', 10, 1 );
    
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar