latest version

QueryableΒΆ

Adds automatic filters for custom post types. Useful for creating shortcodes which allow users to easily filter collection (ex. select first 5 team members ordered by date descending)

Tip

This element belongs to Bumblebee Package.

'query' => array(
    'type' => 'queryable',
    'bee_query_post_type' => 'post',        # default: 'page'
    'bee_query_taxonomy' => 'custom_tax',   # default: 'category'
    'tab' => esc_html__( 'Filters', 'ct_theme' ),
),

Result in VC Editor:

../../../_images/queryable_tab.png

Use in the shortcode view:

$posts_array = bee_query_posts( $atts );