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
- get_the_term_list without links in archive template title tags?
- How to add images to taxonomy terms? [duplicate]
- Exclude taxonomy term from all loops, but having it on widget
- Get all attachments by custom taxonomy – term
- Echo custom taxonomy slug
- Get terms that don’t belong to current post with a shortcode
- Get all terms, including unchecked, or get the terms outside loop
- How can I make front page to display custom taxonomy page?
- List Categories (wp_terms) and count posts
- Admin (All posts) stop responding problem
- Why get_page_template() doesn’t show taxonomy template file name?
- get_term_link not working
- Why can’t I use an array of term slugs in WP_Query?
- wp_query not resetting, last post hanging
- Using WP_Query and Query_post for the loop?
- Using wp_dropdown_categories in widget options
- How to Modify Default Text in a Custom Taxonomy Admin Panel?
- Website loading slowly – Advanced Custom Fields images
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Copy/clone/associate Custom field to Custom Taxonomy
- Proper WP conditional tag to check for existing taxonomies to list out terms with wp_list_categories?
- Problem with wordpress pagination
- Query posts using custom taxonomy and selected terms
- How to write sql query to get the posts from a custom taxonomy term name
- Foreach loop duplicating a taxonomy thumbnail image
- How to do a particular wp_query taxonomy search
- How to get custom category’s link?
- Restrict access to non-wordpress section of site with user roles?
- Edit custom taxonomy description programatically
- How to find taxonomy parent id from child taxonomy page?
- why are the term_id and term_taxonomy_id doesn’t match on custom taxonomies, but are duplicates on categories
- get_the_tags Conditional display of a custom taxonomy
- Removing “trashed” posts from post count in custom taxonomy terms?
- saving meta/custom field to tag
- attach CPT data to a taxonomy
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- Proper use of wp_get_object_terms
- Remove a href from this code
- Why doesnt this query work? (Custom Taxonomy)
- Permalink Problems
- Adding a second custom taxonomy to a custom post type (both shown in its table)?
- Get wordpress taxonomy slug name(s) to use as div class
- custom post type, hide or disable the status line in publish meta box
- Take a custom taxonomy value and save as a standard Product Tag
- Set term on an attachment using wp_set_object_terms and want to display the full term text but it’s showing a slug instead
- Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in WordPress
- Custom taxonomy archive page requires ?post_type= in url
- Multiple Custom Taxonomy Dropdowns Lists
- Why isn’t the ‘no results’ being shown when a query returns no results?
- How to get_the_term_list() from multiple taxonomies?
- Load a certain functions file for a certain taxonomy
- link directly to custom post if there is only one in the taxonomy
- How to support fifteen thousand terms in WordPress?
- Get taxonomy name for the current post