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 check if a custom post type uses a custom template?
- Custom PHP Template in Twenty Twenty-Four
- Custom template page with custom archives listing by user
- Custom post type not using custom template
- Display CPT posts based on specific taxonomy
- Custom Post Type template stored in plugin folder not showing in post attributes dropdown
- Creating select dropdown with parent-level custom post types
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- What’s the difference between same wp functions get_posts(); functions in different form?
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Set up Custom-Post-Type Author Archive
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- WP_Query orderby modified to include custom meta changes
- Custom Post Type Loop throws 500 error when used in widget
- Am unable to reset a query properly
- get_attached_media() on author page not working
- How to clone the “Projects” Custom Post type in Divi theme
- How to make sure content doesn’t display if selection is empty
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- Show one item per category of a custom post type
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Meta Key Value in current-user-only loop
- How to display all posts from standard posts to custom post types in a loop with pagination?
- Calculate all custom field values in the post loop
- CPT + CMB2: data not displaying for only first post in loop
- Get next and previous 3 posts in a term in single post page
- Loop custom taxonomy to get lists of cutom post types?
- How do i calculate the total of values of custom fields in custom post types?
- Get term name and term parent into custom post type permalink
- Multiple Loops On Custom Post Type Template?
- Query with no terms uses index.php template instead of archive.php
- Custom loop with multiple taxonomy queries
- I would like to have different styles for my posts based on the content of each post
- Checking if Post Title is Unique as Loop Criteria
- Custom post type not displaying content from single-{custom post type} page
- Create template for taxonomy results limited by Custom Post Type
- Template for custom post with custom taxonomy
- WordPress Custom Post Type Children Template
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Custom post type multiple loop by taxonomy term
- Help need making decision. Ads rotating site on wordpress
- Getting template_include to work when allow_url_include is off?
- List custom taxonomy specific to one custom post type
- Query & Order posts by custom fields
- Show a Category X’s custom post type on Category X archive page?
- Paging doesn’t work?
- Custom post type content using custom fields without template
- Sort by alphabetical order archive.php page
- custom taxonamy and post type
- Custom Tag Description unable to display just below and outside of the Loop
- 2 Templates 1 custom post type according url
- Display all taxonomy terms, add class if term applies to current post
- Don’t know how to show custom taxonomies from a custom post_type
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Group CPT posts by custom taxonomy
- Not Able to Get Custom Post Type Gallery Images URL