This is entirely possible. Though, I would recommend using the Post custom metadata (i.e. custom fields, or better yet, a custom metabox).
I would use a custom metabox, with two radio select options:
Byline:
(*) Author
( ) None
Then, in your template file, you can output the author byline only if the appropriate post_meta key has the appropriate value. If you want to get really fancy with it, you can even use the post_meta key/value to customize the Loop for your Author archive index output, so that Posts indicated not to display the byline don’t output in the Author’s archive index.
Related Posts:
- Where to put my code: plugin or functions.php?
- How to display value of custom fields in page
- Custom post type single-{custom}.php not working
- Post template not applying on theme (potentially rendering as Page template)
- Limit custom post type to the authors only on front-end!
- How to search through all child taxonomies using WP_Query?
- I have a random letter appearing before my content. Where to start looking for the cause?
- programmatically generated custom post type is created more than once
- Add extra elements to the_post in a custom post_type
- Visualize info in just custom post_type in theme
- cpt not display inside nav menu
- How to use posts as tabs in a custom page?
- Issue on Getting URL of Uploaded Image to a Custom Post Type
- Custom Post Taxonomy Template Not Loading Properly
- 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
- Problem with multi checkboxes value in metabox?
- Custom Post Type archive page listing a 404 or single post
- Too many revision when post status is changes [duplicate]
- How to display only child category post in related posts in custom post type?
- How do I get all authors posts of a custom post type outside loop
- Why is wp_list_authors not picking up Authors from CPT’s?
- Create dynamic logo carousel without using any plugin
- Having issue on Loading Meta Data From CSV to CPT
- Need to display author’s email id in the “Edit post” field in wp dashboard. How do I do this?
- Delete Post by User
- 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?
- How to make id user can be view content
- call a function when insert and update a custom post type
- Display posts on parent post if author coincides
- Author archive custom posts only?
- Links Image in “Catalog” Page to Posts
- Set a static page as a user profile page?
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- creating a custom post template
- 2 custom posts types, in their own columns, one pagination for both
- WordPress is giving a warning but my code is working fine
- 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
- I want to link an author to everything from any post type that they publish on the website
- Not Able to Get Custom Post Type in Single and Single-custom-post-type
- How To Display Category list from Portfolio post type plugin?
- How to develop custom URL redirection
- Loop carousel slider in wordpress
- Custom post type with custom taxonomy permalinks
- Get author image for posts in loop on custom type posts page
- Using piklist meta box, strange behavior
- Custom taxonomy page template
- get_pages can’t load pages with custom post types
- Cant insert wrapper div into index.php
- Search form to find custom meta box generated data
- erase post excerpt limitation [×]
- show custom taxonomies in hierarchy
- How can I detect a chosen Isotope layout option from within Javascript to generate appropriate layout?
- Add “post option” support parameter in custom post type using Hueman Theme?
- How to Display CPT Posts on index Page
- Query custom post type and showing its content
- Issue on Counting CPT’s Under Taxonomy Term
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- Function that get ACF fields value before saving
- Why is my custom form saving with ‘autodraft’ as title and slug?
- Having some trouble properly displaying Custom Post Types in templates
- Displaying information from Custom Fields in template with Types?
- Custom Post Type Author Array Problem
- Author profile comments system
- Show a custom field instead of username in the backend author area
- How to Create Custom Post Type with Multiple Color Options?
- Custom Post Type supports author
- Create custom post order (with custom post type meta)
- Author template – separate custom post type by custom taxonomy term for $curauth
- Custom post type and custom taxonomy archive inaccessible
- Apply custom names for generic custom taxonomy name?
- Change position of Post Formats box?
- Category names on CPT archive pages [closed]
- Single page for Custom Post Type not found
- How is get_the_author connected to a custom post type?
- How to display Author Profile based on Custom field value
- how to show Author post type count
- How to manage wordpress knowledge base/wiki/posts collections
- How to create custom page templates with default page layout framework?
- Emailing Authors only when a CUSTOM POST TYPE post is published- not when edited later [duplicate]
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- Retrieve a post with its ACF repeater fields in wordpress
- Need some hints for my own WP theme development
- Can you programme the selected page template to display block patterns automatically?
- WordPress search results grouped by post type
- Show custom post type on post category page doesn’t work / breaks navigation
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- Default WordPress Query for a Specific Custom Post Type URL
- How to check if a custom post type uses a custom template?
- How to build help pages similar to WordPress Developer Resources
- Custom PHP Template in Twenty Twenty-Four
- ACF Pro simple Business Directory – Requesting assistance with created Templates and associated Functions.php Coding
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- Adding a new custom post type using the editor causes 502 bad gateway error