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
- Theme localization of “slugs” (custom post types, taxonomies)
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- How do I get a post (page or CPT) ID from a title or slug?
- Disable permalink on custom post type
- Search that will look in custom field, post title and post content
- Load custom posts with same tag as page
- Get custom post type by category in a page template
- Is it possible to create an “export to PDF” option?
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- How can I add dropdown widget/box to admin post page?
- Meta Query “IN” doesn’t work with ACF checkbox filter
- Clean URL permalink for custom post type
- WP insert post PHP function dynamically generated Custom Fields
- Rewrite CPT slug with two taxonomy slug instead of one
- Inserting data into `post meta` table?
- Error after deleting Custom Post Type with a function (no trash used)
- Can’t edit Custom Post Type slug/permalink
- Change message given when deleting post from custom post type
- How to append element after thumbnail
- Custom Taxonomy breaking pages permalinks
- I am having a problem with form updating/editing WordPress post on the frontend
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- Automaticly add slug to posts
- Custom Post Type without an archive page
- Custom post type and taxonomy slug issue
- Custom query to filter posts that have current post as a taxonomy [closed]
- Pagination for custom php code
- Received nothing after executing AJAX post function
- Troubles with saving metabox
- Am I using the flush_rewrite_rules function in the right place?
- Child post with numeric only slug keeps redirecting to parent
- How to add a post slug to a url?
- AJAX load more for different custom post type loops
- Changing wordpress publication date to ACF date and time picker date not working
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- creat filter with wp_query
- WordPress custom post type permalink rewrite shows page not found
- Categorize custom post type
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Function causing the loop display posting more (empty)
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- categories should be available across all custom post types
- Set featured image to archive.php
- Get term name without a foreach loop
- Including all post id’s of a custom post type into an array
- Understanding Post Formats/Custom Post types Etc
- How do you create %post_type%/%postname%/ permalink structure?
- Custom Post not working as expected
- Show current custom taxonomy
- finding and using post type fields in WordPress
- After creating Custom post type by user delete old one
- Is it possible to use array_walk() to append terms to an array of posts?
- How to add new post using a form to categories when categories are using as menu
- Different post title, keywords and description
- post_content is stripping HTML when adding a new post? [closed]
- Querying a custom post type, but not show duplicates
- Changing CPT slug and taxonomy already registered in parent theme
- Custom Post Type for Shortcode Use – Prevent it display as a post (with slug)
- Menu’s breaking, now showing all page links on site
- Creating on-page options for Custom Post Type
- Post type Echo code is repeating on homepage
- How can I increase the post count for custom post types only?
- How do I call the custom Post Type name and permanent link to my php file?
- Page that lists publications by classifying them by taxonomy
- Custom post type and multi taxonomies + customize url
- Is it possible to hide nav menu items only when they are page titles (on specific templates) but not on the dashboard?
- Grouping custom wordpress post types by acf value
- Assigning categories to custom post types via a front-end form; only works for native post type
- How to limit the number of custom posts certain users can publish in WordPress using php script?
- Limit custom post type to the authors only on front-end!
- Custom sorting in post columns by ACF Pro Select Field
- Visualize info in just custom post_type in theme
- cpt not display inside nav menu
- wp_post_delete is deleting all offices
- Custom Post Type has wrong label and is not found when called by a loop
- current-post-parent for custom post type
- Having issue on Loading Meta Data From CSV to CPT
- Rewrite URL of Specific Post of Custom Type
- add .html to custom post type with WPML
- The most recent post of custom taxonomy
- 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?
- Display a Custom Post Type within another with hierarchically slug
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Meta Box not being added in plugin
- Show Custom Post Type taxonomy term that matches custom field
- Custom Post Type Rewrite Rule
- How can I retrieve the slug for a custom post type via name?
- WP Query WordPress Post Type with the same Taxonomy name
- Return all wordpress custom posts in specific multidimensional array
- Add number in increment of one to DIV ID
- Select Menu for Custom post Type does not save
- Custom Portfolio String
- What is the most efficient way to manage changes my product comparison tables?
- Dynamically change Custom Post Type Template OR Change Permalink?
- Store custom post type with JSON content
- how to display custom taxonomies in front page
- Custom post type Premalinks main page and details page