You actually doing mistake. You have to pass 3 parameters as array not like this.
Use below code
<?php //if is single event, guide, firm news
if ( is_singular( array('events','guide','firm-news') ) ) : ?>
<h5 class="event-subpage-header-title"><?php echo $title; ?></h5>
<?php
else :
?>
<h1><?php echo $title; ?></h1>
<?php
endif;
?>
Related Posts:
- Custom post type for ‘staff’ versus using wordpress user profiles?
- Query by post title
- How to get custom post type label and singular label from its slug?
- next_post_link() not working for single custom post type post
- How to set a default format for a custom post type?
- Now can I group custom post types together?
- WP insert post and custom taxonomy
- Assign a Custom Role to a Custom Post?
- Implementing “Video of the Day” Feature?
- echo value from ‘select’ field type into page template using cmb2?
- Exclude add_filter from the admin
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- Sanitizing post content for use in an email
- Genesis Child and Custom Post Type
- Best way to arrange custom post types by Attributes -> Order metabox value?
- Query multiple taxonomy in Custom Post Type
- automatically create taxonomy with same name as post title
- Separate Custom Post Type Taxonomy by Comma
- CSS for Custom Post Types
- saving custom post type data to different table in wordpress
- Display “Post 2 of 4” on single post page?
- Query post types with multiple keys
- WordPress import not importing custom taxonomy
- How to generate a sitemap with custom posts (not Google XML)
- Turn query string to sub page
- Filter posts with meta_query NOT IN where value has multiple values
- How to make post sticky in the admin page?
- WP 4.7 broke get_post_type or requires an explicit integer value?
- Remove base slug in permalinks of hierarchical custom post type
- Custom post type custom taxonomy archive page name
- is_main_query() not working for WP REST API
- How can I move a custom taxonomy and its data from one post type to another?
- rewrite custom post type slug in wp admin
- Displaying the type of post (Custom) in a single.php
- If Statement – if current post is a child of a post with a taxonomy
- Unable to retrieve any posts of CPT in wp-admin
- Get next and previous 3 posts in a term in single post page
- Rewrite slug for CPT
- Custom post type templating problem
- Register widget only page is a singular of custom post type
- Which post does a taxonomy term belongs to?
- I’d like to cycle through existing posts in a post type, showing one per day ordered by title, and starting over when the last is reached
- Remove the parent slug in a CPT URL
- Custom Post Type – No Results Found
- Including metaboxes from custom post types in global search — continued
- CPT’s with landing page instead of archive – Url Rewrite?
- How to produce a sub-page-system in WordPress
- How can I add a filter to a particular post format?
- Custom posts type for individual pages?
- get_post_meta is not working inside shortcode
- False Positive on has_post_thumbnail
- Custom Taxonomy not displaying all post
- How to Display Posts From Category Within a Custom Taxonomy?
- post-per-page and offset not working
- When updating non-public custom post type it says “Post updated. View Post”
- Published post auto change status to pending after 90 days
- How to retrieve all wordpress posts (specific type) inside a function in php?
- Enable comments on custom page type – option not showing in “customize” for theme
- How to migrate Custom Field Template to a WordPress Multisite
- Automatically update slug with latest title within custom post type [duplicate]
- How can I lock specific posts (cpt’s) from editing by anyone other than ADMINS
- Post Type Support Array Not Working
- How do I Query 2 Custom Post Types?
- Function to erase every post from a taxonomy
- Custom Post Type or Shortcode, What to choose? [closed]
- Building a Data Intensive Website with WordPress
- Custom post type, taxonomy and admin bar
- Truncate custom post type content
- Select Venue from dropdown list and reuse stored address information in meta_box
- Group episodes by seasons
- Custom post type set default template using block editor
- Why this didn’t work if i use get_the_ID(), but works if i pass the numeric id
- Create API’s for custom-post types & custom queries using REST or Graphql
- Disable button after one click per user per post
- How to return/export only data showing on screen in custom post type view all screen
- Show Custom Post Type based on Category on Archive Page
- How can I add image sizes for a specific custom post type?
- Get all posts for custom taxonomy term
- click tags for custom post types
- Author page not loading the authored post archives
- My CPT has archive false, now I need use parent Page for slug
- How to get a custom post type archive paged when using a custom field for post sorting?
- Links Image in “Catalog” Page to Posts
- ACF saving posts
- WordPress query posts by custom post type not workng
- Query events post type after current date and timezone
- Structuring 3K pages in WordPress
- This wp_query will not return any posts and only seems to work with post_status inherit?
- Using piklist meta box, strange behavior
- How can i embbed two different galleries in custom post type
- How to display the FAQ Archive page in my menu
- No Current Class showing in Menu for Custom Post Types
- Creating a custom post type – want to add an alert for user
- Custom filtering on month value only of an entire date field
- How can i display on front page a movie that is atached in a post type
- Can I filter a post type based on comment moderation settings?
- Get only one custom post from each category
- Custom post type is_singular condtional not working when managing sidebar display
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?