Select_Advanced Taxonomy

Support General Select_Advanced Taxonomy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16809
    grafiknzgrafiknz
    Participant
                 array(
                        'name'    => __( 'Previous Exhibition', 'rwmb' ),
                        'id'      => "{$prefix}featured_slide_previous_exhibition_link",
                        'type'    => 'post',
                        'clone'    => false,           
                        'force_delete' => true,
                        'std'   => '',
                        'field_type' => 'select_advanced',
                        'query_args' => array(
                            'post_status' => 'publish',
                            'posts_per_page' => '-1',
                            'post_type' => 'exhibition',
                        ),
                
                    ),

    I'm Looking to display a custom post type called 'exhibition' with a select_advanced, this works fine as per above.

    I'm running into problems to filter this list so that it only shows results for a taxonomy within exhibitions. In this case I want to just show the taxonomy 'type' with values of 'past'.

    Any pointers would be greatly appreciated.

    #16843
    Anh TranAnh Tran
    Keymaster

    Have you tried adjusting the query args with tax query?

    https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.