Your argument for is_singular()
is wrong
It should be an array
is_singular(array('post','movie'))
You can read more about the argument passed from this link here
Related Posts:
- Load custom posts with same tag as page
- Categories and Tags not working!
- Search doesn’t find tags or categories in custom post types
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Group posts by custom post type
- Custom post type getting wrong categories and tags
- How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?
- Cross reference custom post types
- How can I show 1 featured post in a styled element, and the next few below differently styled
- List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
- Tag page only display 10 posts
- Archieve.php not loading for custom post type
- Why does my taxonomy have a category style div id?
- Need help deciding on a taxonomy
- Get Posts by Category, Tag , and CPT Taxonomy
- The Difference Between Categories and Tags and Taxonomies and Terms
- Custom post type, taxonomy and admin bar
- Advanced archive url structure (category, tag and date)
- Save data is post using php front end
- get taxonomies from terms
- How to set “section categories”?
- Get meta values from parent post and save in child post
- Do not output category and tag URLs
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Custom Post Type – Admin Columns
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Advanced search form with filters for custom taxonomies and custom fields
- Custom field values deleted when trashing custom post type
- post_tag taxonomy with custom post type
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- category__in not working on custom post type
- how do I group content in magazine-style ‘issues’?
- Use standard WordPress categories with a CPT
- Rest Api v2 orderby meta_key in custom post type
- bulk Update post_meta with default values
- How can I add single catogory for custom post type?
- Get the post_type of current taxonomy or category page
- get_categories() for only CPT
- category.php displays ALL posts instead of just those with the current category
- custom taxonomy archive by year
- Display Next/Prev when looping Custom post-types archive?
- How can I get_post_meta() in the most efficient way?
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- Can custom taxonomies items have attached properties?
- Weird problem happening with custom taxonmy when creating/updating posts
- List all images from a single post meta value
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- CPT Archive with core Category
- Get posts from a custom post type by child categories of a parent category
- how to delete all users and posts based on ‘user_meta’?
- Meta Key Value in current-user-only loop
- get_posts() with custom post type does not work outside page.php
- How to implement a Google map store locator
- Show a Category X’s custom post type on Category X archive page?
- Multiple level category drop-down from the WordPress dashboard
- Getting categories of posts under a custom taxonomy
- get_post_meta returning no value in custom post type alert email
- How to get categories linked in posts for a specific post type
- How to edit this code to get the categories in achieve page?
- Get the category from custom post type
- Make a custom_post translatable
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Custom templates for a specific category
- Show all tags on custom post type
- If Post Meta Equals Current Title Conditional Advanced Custom Fields
- Get parent category id from child category page for custom taxonomy
- Display different information of a custom post type
- How to get specific post meta by title or id
- Custom post types with categories in template
- display custom taxonomies limited to custom post type?
- WordPress admin display post type tags as checkbox
- $post->post_meta not pulling any post in wordpress/php
- WP_Query of custom post type sorted by meta_key has unexpected results
- Get assigned post categories
- Custom Post Type posts not showing in category
- Post Query not working
- Category Name with Custom Post Type
- Search CPT Title AND Meta
- Am I mixing up the concept of posts pages and categories?
- Order Categories by Hierarchy?
- Tag template not returning posts [closed]
- How to divide Subcategories into pages of parent category wordpress
- Using publish_{custom-post-type} hook for custom post type to update meta doesn’t work
- Custom Post Type Category Displaying ALL Sub Categories as well
- create a “add icon” field in taxonomies page
- Feature image Gallery made from Custom Post type + Categories
- How to get post by meta value
- How do I get all authors posts of a custom post type outside loop
- Use Category for Custom Post Type – But Need Another Separate Archive Page too
- custom search results – order results differently by post type
- Only show current category post
- get_post_meta for Custom Post Type ( CPT )
- Page to show custom posts and one category
- How can I list custom post by custom category?
- Bulk remove category from custom post type?
- Problem with menu categories doubling up when updating database?
- Random meta field from specific custom post type
- Remove slug from Custom Category Permalink + dual-category permalinks
- How to query posts by category with the_title();