Turns out the issue with my category was that it was a custom taxonomy:
elseif ( is_tax('category', $private_categories) )
needed to be
elseif ( is_tax('wzkb_category', $private_categories) )
Super simple but might send someone down the correct path in future.
Related Posts:
- get_the_term_list without links in 3.1
- Query users by custom taxonomy and user role
- wp_insert_term – parent & child problem
- Custom order of terms for custom taxonomy in admin and website
- Associating an “author” with a custom taxonomy
- Custom Fields and performance
- Creating a custom Admin panel
- Remove description in custom taxonomy edit screen
- get_the_term_list without specific category
- User role permissions based on taxonomies
- Extending wordpress search to include excerpts and taxonomies?
- Refine user taxonomy query based on role
- wp_query to display custom taxonomy terms
- How to list all record from one custom taxonomy start with only one letter i.e A
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Creating an Archive using a Custom Taxonomy
- List Recent Post Titles from Custom Taxonomies?
- User: Editor, can’t see edit taxonomy screen
- Custom Taxonomy Term Caching?
- Some of my custom taxonomies are not showing but still counted in a WPMU set up
- add hirarchy of categories in products grid of visual composer
- Add success message to category add screen
- wordpress testimonials
- Hiding taxonomies with no children WP_Query & tax_query
- WordPress Custom post query sorting does not work
- Custom taxonomy not appearing in menu administration panel
- Best structure for entering recipes in a WordPress theme?
- Get Terms for Page
- Restrict editing of posts with specific taxonomy to users with a matching meta value?
- Add attribute taxonomy through code don’t appear in admin product page
- Best way to redirect taxonomy terms to pages
- Create alphabetical Pagination for custom taxonomy?
- Taxonomy Overview Page?
- Featured Images for Tags?
- Query Multiple Custom Taxonomies
- Use wp_list_categories to list parent categories from actual term
- Remove Custom metabox from particular page template is used
- Assign a default description to new terms under a custom taxonomy
- WordPress tag or archive php file customization
- Best Method to Switch Between Terms (Custom Taxonomy)
- WordPress shortcode Issue!
- Why is it defaulting to “uncategorized” even after I select a custom taxonomy
- Trying to achieve row posts below category with multiple loops in custom tax
- Advanced search: roles and multiple taxonomies
- Custom Taxonomy, shows empty value (home page of website)
- Custom Search only for my Custom Taxonomy Page – data
- How to modify a taxonomy that’s already registered
- Change order of Custom Taxonomy List
- Custom taxonomy listing page when no term set (all terms)
- RSS Feed for posts containing any term from a taxonomy
- Exclude Child Term Posts from Parent Term Archive
- Custom Taxonomy terms with latest post ordered by date pagination issue
- Custom taxonomy template not working
- List only first-level children of specific custom taxonomy term
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- get_terms of post->id
- get / list categories and counts filtered by custom taxonomy term
- how to search in custom fields & custom taxonomy for custom search
- List Custom Taxonomy Based on Post Count & Category
- Custom taxonomies as product variations
- Show Two custom Post type and their posts on category page
- Echo specific term in an array
- wp_insert_post not updating custom taxonomy selected if logged in as a subscriber
- Print terms with taxonomy and metabox value
- Why is the custom taxonomy archive page redirecting me to a single post? [closed]
- Rewrite URL for taxonomy listing
- Return terms from multiple taxonomies using $wpdb
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- How to show all post related taxonomies
- Creating terms vs custom post meta to save data?
- Sticky posts or Featured posts only on Homepage
- Limit number of posts in wp loop
- using wp_tag_cloud with custom taxonomy
- How Parent Taxonomy automatically added to the post when using `wp_set_object_terms()`?
- How to set custom capabilities for custom taxonomies?
- Handling Multi-level custom taxonomy hierarchy
- Reverse order of posts in a certain taxonomy archive?
- Using Advanced Custom Fields Relationship Field to select a taxonomy term
- WordPress sub taxonomy template
- SEO Title Tag and Meta Description for custom taxonomy
- W3 total cache – white screen of death when trying to show certain taxonomies [closed]
- How to get this value inside RETURN
- Comma separator problem of custom taxonomy
- How can i fix a 404 error when targeting custom taxonomy slug ?
- How to determine which capability to use?
- Connect ACF field + custom taxonomy [closed]
- List posts with slug title
- get parent and childs from hierarchcial taxonomy
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- Custom taxonomies template
- Get all users attached to a taxonomy
- Permalinks incorrectly inserting multiple categories
- List active taxonomy terms
- Disallow “contributors” to edit their own posts once they’ve been set to “Pending Review”
- How do you move custom fields to custom taxonomies using WP Queries
- Where to put code to get custom taxonomy term id?
- Select default taxonomy on dropdown
- How can I query for all values of a custom taxonomies?
- Returning info from MYSQL table via custom taxonomy
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error