This solves my problem:
register_post_status('my_custom_post_status', array(
'label' => __('The Label', 'domain'),
'public' => !is_admin(),
'exclude_from_search' => true,
'show_in_admin_all_list' => false,
'label_count' => //blablabla
));
!is_admin() makes the status only public on the frontpage.
If you find a better solution please post it here!
Related Posts:
- Is it possible to have more “levels” of draft/published statuses?
- What is a “protected” post status?
- how to assign a status/mark to post?
- Why doesn’t wp_update_post() update the post_status field?
- Changing post status in one click
- How can I run custom function when post status is changed?
- WP_Post_List_Table::get_views – Have post counts account for filters?
- Creating/editing custom ‘post-state’
- Using arbitrary post status without registering it
- Get a list of ALL Statuses both registered and built-in
- Adding custom post status to visibility in publish meta box
- Changing post status
- Change scheduled posts to published
- Include Drafts or Future posts with count_user_posts?
- Remove ‘private’ and ‘pending review’ options from post status dropdown
- Can not get future_to_publish to work
- Which is the better way to get the status of a post?
- “Publish immediately” with custom post status
- Modify Post Status Arguments
- Additional page and post status types
- Add a simple JS Alert Box on Post Submission
- Function to change post status IF current user and post author are the same
- Schedule future post to custom post status instead of publish?
- Why does get_post_status display published when attachment is in trash?
- Force Custom Post Type Status to ‘Future’ on first Save or Publish
- Workflow for attachments in WordPress
- how to transition to custom post status on post save
- How to change custom post type status when non-admin updates post?
- Custom post status filter links always show a count of all posts in the site with that status, not the logged in users count
- wordpress post status inquery
- Multiple Post Status
- retrieve post details in loop
- Any way to change post/page status when editing page?
- How to change post status from “draft” to “publish”?
- transition_post_status doesn’t work with bulk updates
- Submitted for Review back to a Draft page
- How to Add Custom Post Status in WordPress Admin
- Auto draft posts when scheduled date is reached
- Changing a post status name
- How to update post status to draft if user role is “pending’
- How to create posts with a specific date in bulk
- How to Get All Posts with any post status?
- Using get_post_meta with new_to_publish
- How to check if page has status published
- How to 301 private posts rather than 404?
- How to Get All Posts but the Private ones?
- Detect type of post status transition
- change a post status when users update posts?
- delete custom post based on custom field date
- Why this plugin doesn’t work with media upload page?
- update_post_meta() not working when used with WordPress action
- How do I check if a posts status is set to draft or pending?
- How to set default status to custom post type
- How to display future posts – modified query still yields 404
- How can a guest view the “Pending Review” Post?
- add filter to “quick edit menu” in wordpress admin
- How to Modify this $wpdb query to accept an array of post statuses
- Allow users mark posts as “complete”?
- Change Visibility to Private
- Is it possible to change an existing post status from ‘pending’ to ‘publish’ via email?
- how to remove dash (-) post status from post title on posts listing page wordpress
- Wp_query Add specific pending posts
- Show scheduled posts in main loop but not in WP_Query?
- wp_query ignoring custom post_status
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- WordPress post_status is future, manually added
- Custom post type suppress transition from future to publish
- change woocommerce product statut (draft ->publish // publish->draft) depends on the month [closed]
- How to update all posts but the current one (post__not_in not working?)
- Posts and Attachments with “Published” status in Search
- How to use same page template if post status other than ‘publish’?
- Show user info in a hovercard [closed]
- Do action for only switch status for publish_post
- Accessing private posts through REST API, same code that works in remote doesn’t in local
- Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public
- wp_dropdown_pages : choose post status to list in dropdown
- Restrict access to a post once it is tagged as a given status
- What function publishes a post when you click the publish button?
- WP_Query will not display draft posts
- Set Post Private if no linked Post Objects (ACF)
- Updating post status via rest api
- edit.php all post not working
- If click on Save/Publish change Post Status to Pending Review instead Publish
- Bulk edit orders to ‘wc-processing’ status
- how to change value return by _stock_status
- Custom Post Status not getting displayed after post update
- Send default WooCommerce email when switching from custom order status
- How to save post_status using action save_post?
- Why transition_post_type hook is called twice for the same post?
- Implement post status update as frontend news announcement
- How to filter posts in admin by before date or by post status ‘future’?
- Excluding certain post status’s from pagination
- How to Show Different Information to your authors/contributers
- Function is Missing an Action Hook
- Force Publish Future (Scheduled) Posts Immediately [duplicate]
- get_posts includes “auto drafts”?
- Post Format Status [closed]
- Set post status to draft after validating post meta values in save_post hook
- Why does my function create extra empty files?
- editPost without undo entry