How can I assigned a post to multiple post status like it will be in ‘publish’ status and also a custom post status say ‘hide’ post status.
This can be achieved by storing a post meta value. You can do stuff on the post based on this meta value.
by this publish post count will remain same
The meta value won’t change post count.
‘hide’ post status can be hide from a loop.
Do you mean that you don’t want to show these posts in your site? You need to use meta query for that. In that case, see this answer: https://wordpress.stackexchange.com/a/188940/23214
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?
- register_post_status and show_in_admin_all_list
- 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
- 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
- Turn Off Automatic Trash Deletion?
- wordpress function to change post status [duplicate]
- Custom column for changing post status via ajax
- How to display the status of users (online – offline) in archive.php
- Let private posts stay in status “private” after edit through “editors”
- Custom post status and preview
- get_terms(); show private posts when logged in
- How to change post status in hook?
- featuring old articles without messing up with the archive
- Show scheduled posts in archive page
- Setting a title on a Custom Post Type that doesn’t support titles
- How do I limit the status options for bulk/quick edit to only Published and Draft?
- 418 header status, I’m a teapot [closed]
- Enable commenting on front-end preview page for pending posts
- Error after deleting Custom Post Type with a function (no trash used)
- Show recent published posts
- Check whether a custom taxonomy term has published posts?
- Problem duplicated shortlinks bitly
- How do I batch create revisions of all posts?
- ‘transition_post_status’ only fires when pressing “Add New”
- wp_transition_post_status does not change the status of the post
- stop login if user_status equal zero
- Add Post Status to Body Class
- Automatically remove a canceled order in Woocommerce
- All, published and pending order
- Custom date changer post_date => future – missed schedule error
- How to change post status from frontend?
- Featured image overlay when changing post status
- Add custom post type drafts to RSS feed
- How to define which register_post_status goes to which register_post_type?
- Get publish post link?
- How to display pending posts on the homepage only for editors
- Ajax function on #publish only saves as draft – how to make it publish?
- Why won’t draft listings appear for non-admins?
- custom post type, hide or disable the status line in publish meta box
- Is there a before_save_post hook or something similar
- Taxonomy vs Post Status
- Allow a subscriber to be an author and view only his post
- Conditional tag-like function to tell if post is in trash?
- How can I restore posts from ‘trash’ with their previous post_status? – WordPress
- How to set a Post’s default visibility to ‘Private’ in Gutenberg?
- How to hide private posts even if user is admin
- how to change value return by _stock_status
- How to stop post status from reverting to Published?
- wp_insert_post() creates duplicates with ‘post_status’ => ‘publish’
- change page status with code
- Modify loop to include all post statuses not just ‘published’
- Custom Post Status & Taxonomies
- How to change post status link order(priority) on cpt listing page
- Function/filter or plugin to change post status based on custom field value
- Get new (not old) post inside transition_post_status hook
- How to Show Different Information to your authors/contributers
- Is it possible to cancel a post status transition?
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Function is Missing an Action Hook
- Force Publish Future (Scheduled) Posts Immediately [duplicate]
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- hide woo commerce dashboard status and reports from woo commerce from specific users but display to other users
- transition_post_status hook, works – but not if the post is new