Need help in the process of creating your own WordPress theme?
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:
Use in the shortcode view:
$posts_array = bee_query_posts( $atts );