• Resolved Oikos

    (@oikos)


    I need to create a query for my taxonomy-ccb_core_group_area.php that only returns results when ccb_core_group_type = small_group. Basically, I need to be able to refine ccb_core_group_type = small_group by ccb_core_group_area. Currently, all other groups types are showing up in the ccb_core_group_area archive. Maybe I’m looking at this the wrong way?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Oikos

    (@oikos)

    Nevermind. I was able to write a function that took care of this.

    function my_small_groups() {
        //And any other checks
        if (!is_admin() && is_tax('ccb_core_group_area')) {
            set_query_var('ccb_core_group_type','small-group');
        }
    }
    add_action( 'pre_get_posts', 'my_small_groups' );
    
Viewing 1 replies (of 1 total)

The topic ‘Conditional Statement for core group area’ is closed to new replies.