The filename single-recipe.php
is telling WordPress “only use this file to display single ‘recipe’ CPT posts.”
If you want to use it as a Page template, you can either rename the file tpl-recipe.php
(or something similar, it doesn’t have to be this filename, it just has to not be a recognized pattern like single-cptslug.php
) – in which case you’ll have to manually choose that template every time you create a new Recipe –
Or, you can have two files. One named single-recipe.php
which does NOT have the comments at the top, and one named tpl-recipe.php
(or similar) which DOES have the comments at the top.
Related Posts:
- Why is get_post_format() for “Standard” returns empty
- Password-protect a custom rss feed
- Is it possible to place custom post type files inside a folder in theme directory?
- Get term name and term parent into custom post type permalink
- Specify a particular page to list all custom types
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- Methods for development wordpress themes [closed]
- Custom Post Type – Main page for certain posts
- erase post excerpt limitation [×]
- Query custom post type and showing its content
- Create custom post order (with custom post type meta)
- Change position of Post Formats box?
- How to manage wordpress knowledge base/wiki/posts collections
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- Mini-Site Strategy
- Custom Post Type Permalink Page Not Found
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- Where to put archive-{post-type}.php
- How to set a custom post type post as static front page?
- White screen error for a custom theme
- Managing event dates vs published dates in admin custom post type
- Custom post type archive sorted and grouped by date in post meta field
- Assigning Multiple Layout Designs with Custom Pages in WordPress?
- How to retrieve custom field types for all posts in WordPress/PHP?
- Integrating Orbit slider into wordpress through custom post type
- How to use custom fields to enable sticky posts on custom post types?
- Hide Meta Boxes for Non-Admins
- Generate Shortcodes by Taxonomy
- Why is archive.php used for my page
- Made Custom Post Types, but single.php not working
- Custom template with CPT doesn’t display on frontend
- What’s the difference between same wp functions get_posts(); functions in different form?
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- Create a wordpress test-system as a clone from productive system
- Return the latest post from a custom Taxonomy and Post Type
- Don’t know how to show custom taxonomies from a custom post_type
- JS innerhtml changing style when using AJAX
- How to change the post type a theme shows by default?
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- What is the best practice for displaying my plugin content in themes?
- Event Custom Post Type Title show by upcoming Event Dates
- Custom post types and category archive
- How to produce a sub-page-system in WordPress
- WebP Fallback for Inline Background Image in Style Attribute
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- How can i link a custom post type thumbnail to intermediate size
- i cant see the max_num_pages of a custom wp query
- Archieve.php not loading for custom post type
- detect your custom post type in WordPress
- Running a song lyrics site on WordPress
- Using page slug in wp_query
- WordPress app page not found error for posts with hyphen in permalink
- Where is the sticky post option?
- How to have permalink like domain.com/term/postname?
- WP_Query with custom post type ID
- Archive links for custom post types
- Custom post type is using the index.php template
- Custom Post type content within a slider
- Can I assign a theme to a custom post type?
- Searching post types
- display two images in theme header.php file
- How to exclude categories from a sidebar with active widgets in it?
- How does one go about converting custom post type to post format?
- How to display magic field’s custom write panel in wordpress theme?
- WordPress giving me the index
- Custom post category name showing empty
- How to store the third party script with HTML code in the wordpress custom input field?
- Getting Same Description in All the Custom Taxonomy Posts
- Get next and prev item from custom WP_Query and Custom Post Type
- Post type to appear on every page on site
- Error 404 change permalink term custom term taxonomy
- How to display custom field in product description?
- DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front
- I have a random letter appearing before my content. Where to start looking for the cause?
- Issue on Getting URL of Uploaded Image to a Custom Post Type
- Custom post type single page uses the right template in preview mode but shows a different template after being posted
- I can not call the categories of custom post type
- Front End users account with lots of user Roles (not Woocommerce)
- Values show up in custom home page but not in custom post pages
- Permanent Custom Post Type
- Custom post type that lets users create a set of posts?
- 2 custom posts types, in their own columns, one pagination for both
- wordpress query_posts with foundation 6 Accordion not working correctly
- Creating Slider in wordpress theme with custom post
- Help with Multi Level Category Archive Page
- How to develop custom URL redirection
- Loop carousel slider in wordpress
- Custom taxonomy page template
- get_pages can’t load pages with custom post types
- Add “post option” support parameter in custom post type using Hueman Theme?
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Having some trouble properly displaying Custom Post Types in templates
- Displaying information from Custom Fields in template with Types?
- How to Create Custom Post Type with Multiple Color Options?
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- How to get ‘Products’ on home page?
- Retrieve a post with its ACF repeater fields in wordpress
- WordPress search results grouped by post type
- Default WordPress Query for a Specific Custom Post Type URL
- How to make content as required in custom post type?