You are checking the source code of TwentySeventeen’s content.php
selectively. The lines you quote are only about printing the publication time in case of a regular post. Directly below your lines the post/page title is printed regardless of post type.
Regarding a) you don’t need to force anything, because as long as there is no specific template for this post type, WP will use the default post template anyway.
Regarding b) you will have to deal with this in a child theme, because that would mean expanding the functionality. You would modify content.php
to include an extra test for post type and include formatting for that. In case you want to deal with this in a plugin, the link you give in the update contains a good lead.
Related Posts:
- How to create custom page templates with default page layout framework?
- Assign single template to multiple custom post types?
- How to set a fall back template for a custom post type in a plugin?
- Custom Post Type Archive URL takes over page URL
- How to query custom posts using a dynamic category
- Posts in Multiple Columns and Rows with one single loop
- Template tags to display custom post type posts in category template?
- Group search results by post type, but hide post types with no results
- Custom post type loops with different page templates
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Integrating Orbit slider into wordpress through custom post type
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Return the latest post from a custom Taxonomy and Post Type
- How to specify a template for a path like http://example.com/something?
- Main query not querying any posts in custom taxonomy template
- Custom WP_Query doesn’t display all posts
- Two column layout with alphabetical ordering
- WP_Query with custom post type ID
- assign different templates to custom post type with homepage loop
- Custom Post type content within a slider
- Create a custom taxonomy template that loops through child categories in term order?
- On click some element i want to use some template
- How to Enable Ascending or Descending In WordPress Default Built-in Loop
- How to display posts from a certain category in a bootstrap 5 carousel loop with multiple items?
- Loop all post on single.php
- Post template not applying on theme (potentially rendering as Page template)
- Add extra elements to the_post in a custom post_type
- Custom Post Taxonomy Template Not Loading Properly
- Accessing download link from the loop with WP Download Manager Pro
- Custom Post Type has wrong label and is not found when called by a loop
- Custom post type single page uses the right template in preview mode but shows a different template after being posted
- Custom taxonomy template for custom fields loop [closed]
- get_permalink() of page the enclosing page not posts
- Values show up in custom home page but not in custom post pages
- 2 custom posts types, in their own columns, one pagination for both
- Custom post type with custom taxonomy permalinks
- Custom taxonomy page template
- Cant insert wrapper div into index.php
- Load different template for CPT (in loop) in my plugin?
- How can I pull information from my loop and divide them seperately?
- Having some trouble properly displaying Custom Post Types in templates
- Create custom post order (with custom post type meta)
- WordPress search results grouped by post type
- How to show Y number of custom posts after every X normal posts?
- How can I fix those issues generated by the Themecheck plugin
- Why is get_post_format() for “Standard” returns empty
- Password-protect a custom rss feed
- How to show related posts by category or custom post type?
- Display posts of child category in template
- custom taxonomy – Template not working
- Create separate template for shared custom taxonomy with shared terms
- adding .current* tags to custom post types and taxonomies
- Page as a child of a Custom Post Type
- Display custom field of specific post where post title matches variable
- Trying to edit the single page from a Custom Post
- Remove duplicated values from a loop
- Normal pages as children of my Custom Post Type
- Custom Post Type template stored in plugin folder not showing in post attributes dropdown
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Display a grid of taxonomy terms at root taxonomy page
- How to use custom template files in deeper directory?
- Display Custom Taxonomy Alphabetically
- Display related custom taxonomy posts in sidebar
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- Conditional for a Single Post That Belongs to a Category?
- Using wp_query to modify the loop in index.php for a CPT
- looping though custom post types and only return results in a given taxonomy
- How to conditionally add Custom Post Type to Front Page
- Pagination doesnt work in custom post type
- get custom post type value in header.php [closed]
- Custom Post Type setup
- Posts are not rendering perfectly [closed]
- WP not recognizing custom post type / template
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Why is the output of a call to the_excerpt different when the call seems to be identical?
- My template won’t apply, theme still fallback to index.php
- Get post-meta value of all custom-posts – lowest to highest year-count?
- Only looping through pages that have children or subpages
- One Custom Post Type two different Templates
- Custom Post Type Query W/Category Dropdown
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- How to get the custom post data using post id in WordPress?
- Pin posts to top of custom loop
- programmatically generated custom post type is created more than once
- Custom WordPress theme not displaying posts from category
- call a function when insert and update a custom post type
- How to prevent post to repeat on my loop?
- Custom post type with two templates
- How to loop custom post type posts by author?
- Custom loop won’t work, can’t find problem
- Categories and page filtering with pre_get_posts
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- loop through custom post-type with two meta_keys
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- CPT Template Option to Top
- How to exclude certain portfolios from a loop
- Group search results by post type, but having a unique heading for each section?