has_category
applies only to default post
type.
You are working on a CPT so you should use has_term()
if ( is_singular( 'eventbrite_events' ) && has_term( 'network', '{YOUR_CUSTOM_TAXONOMY}' ) )
where {YOUR_CUSTOM_TAXONOMY} is optional and it must be the slug for eventbrite_events taxonomy to which the term ‘network’ is attached to.
Related Posts:
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Using WordPress custom post type to display StoryMapJS
- News post with multiple permalinks? When opened from different page
- Output all terms slugs for a loop filter
- Change Search display for Custom Post Type
- Show parent category and subcategory once in while loop
- Custom search for a custom post type in WordPress
- Having issue on Loading Meta Data From CSV to CPT
- Rewrite URL of Specific Post of Custom Type
- Change permalink incrementor into pseudo-subdirectory
- Custom Taxonomy – fields
- Custom Post By Category
- Display a list of sub-pages of Custom Post Type Parent Page
- test if something is a post or a taxonomy
- Stored meta from attachment, video length?
- WordPress trying to query two custom types to get child from the parent
- add .html to custom post type with WPML
- tax_query not working?
- PHP Notice: Unidentified index
- How to get the posts that my following users are liked?
- How to mix 2 kinds of post types
- CPT: execute code after load if parameter is set
- Wrap each child and it’s grandchildren separately
- Add active class to foundation 6 tabs while looping categories
- Print post category name from a custom post type wordpress
- Create unordered list from custom field type entires separated by a comma
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- CPT post doesnt shows tags and category on backend admin page
- Custom Post Type duplicating slug for new posts
- Duplicate posts in my custom loop
- ACF Post Content Not Being Searched
- Include images from pages in wp search.php results in default wp search
- Custom post type post_type_link gives “page not found” on any other custom post type
- Display related post content and custom field content
- The most recent post of custom taxonomy
- Custom 404 redirect for a luddite
- Two CPT: one is using part of the custom rewrite slug from the other
- How to make sure, that only the selected post is changing?
- WordPress page not showing up – replaced with last 10 posts?
- Custom permalink rewrite rules – how do I fix this?
- WP gives 404 error for custom post type with GET variable
- Custom taxonomy archive slug overwrites static page
- Slugs on hierarchical taxonomies
- Show tags of custom post types in WordPress
- WordPress loop add heading before first of type
- Group/list/sort custom post type posts by date in tabs from acf datepicker field
- Display a Custom Post Type within another with hierarchically slug
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Problem to get the link of the default ‘post’ post type like the orther custom types
- Strange behavior on WP_query
- get_post_meta for Custom Post Type ( CPT )
- WordPress query posts by custom post type not workng
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- WP_Query return highest number only
- Meta box not saving
- Show custom taxonomy not in submenu
- Featured image in custom post is being disabled
- Can’t pick up a field created with Advanced Custom Fields
- Pods pagination erases my sub menu
- Can I override the permalink/slug on creation
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- can’t see categories in appearance-menu-categories
- Loop carousel slider in wordpress
- Meta Box not being added in plugin
- How to Fix WordPress 500 Internal server error due to custom post type
- Custom Post save causes 500 error
- Why is my custom post type slider only displaying the latest slide?
- Why isn’t my custom post type using the corresponding custom post template?
- Get the custom post type slug but remove the rewrite prefix?
- Custom post tag images not displaying with ACF
- Get month and day from a Date Picker custom field
- Rewriting archive page slug to be different than custom post type slug
- Generate slug and meta data if meta field is empty
- Get full control over custom post type url
- custom post type archive slug vs. custom page template
- wordpress form processing to custom post type not working
- WordPress custom field images not getting inserted into array
- Function not pulling image or text from custom post type
- Meta-Box to add multiple items one at a time and on publish save all
- Values inside a custom field to determine which category posts to display
- Custom Search not working
- Add category slug as class attribute in a link array
- Exclude Custom Post Type from shared Custom Taxonomy
- Relationship with 2 custom post types
- Show Custom Post Type taxonomy term that matches custom field
- Costum post type with costum (sub)taxonomy
- WordPress Custom Post Type and sort by Tags
- using ACF datepicker to filter posts on a page
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Category slug not showing for Custom Post Type
- Can’t make permalink of CPT work
- How to call Shortcode categories for custom post types?
- How to make nested custom post type slugs work
- Posts without featured image using other post’s featured image
- Custom Post Type Rewrite Rule
- How can I retrieve the slug for a custom post type via name?
- Order by custom field attribute
- WordPress multi-query not returning as expected
- Trying to combine multiple WordPress queries
- WP Query Post Type with same Taxonomy name