Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

post-status

retrieve post details in loop

August 6, 2022 by Magenaut

I have written a function to loop through the users posts, and im trying to display each of the posts by their status, with a different message for each status group.

Categories Q&A, Wordpress Tags post-status Leave a comment

How can I specify the post status of an untrashed post?

August 5, 2022 by Magenaut

By default WordPress assigns the draft status to a post that has been untrashed. I would like to assign the pending status to posts that are untrashed.

Categories Q&A, Wordpress Tags actions, filters, post-status, trash Leave a comment

How can I style future post?

August 5, 2022 by Magenaut

I’m showing published and future posts on a category page.
I need to make future posts unclickable and add a special class to them in order to add a gray overlay, meaning the post is upcoming..
trying something like

Categories Q&A, Wordpress Tags post-status, wp-query Leave a comment

How to set a Post’s default visibility to ‘Private’ in Gutenberg?

August 5, 2022 by Magenaut

I am trying to set a Post’s default visibility to ‘Private’ when a user first creates the post. They should then have the ability to manually select ‘published’ from the sidebar dropdown once they are ready or the post has been reviewed.

Categories Q&A, Wordpress Tags block-editor, post-status, posts, private, publish Leave a comment

get_comments with post_status ‘public’ retrieves NULL result

August 4, 2022 by Magenaut

This is my loop:

Categories Q&A, Wordpress Tags comments, loop, post-status Leave a comment

Any way to change post/page status when editing page?

August 5, 2022August 4, 2022 by Magenaut

Pre-Gutenberg, in the “Status & Visibility” panel, there used to be a way to change a Post’s status from “Published” to “Draft” or “Pending Review” – is that just gone now? The only way I can see to change a Page/Post’s status now via Quick Edit on the main admin-list page.

Categories Q&A, Wordpress Tags post-status Leave a comment

How to check if a user (not current user) is logged in?

August 4, 2022August 3, 2022 by Magenaut

I need to display the online status (online/offline) for each author page (custom author page template).

Categories Q&A, Wordpress Tags author, post-status, users Leave a comment

Custom column for changing post status via ajax

August 4, 2022August 3, 2022 by Magenaut

I’m currently trying to implent a new custom column at the page manage screen that will let me change the status (published/pending) of the different pages via an easy toggle link.

Categories Q&A, Wordpress Tags admin, ajax, columns, post-status, wp-admin Leave a comment

Why doesn’t wp_update_post() update the post_status field?

August 3, 2022August 2, 2022 by Magenaut

I’m using this bit to insert/update a custom post type from the front-end. The date is set from a custom jquery datepicker.

Categories Q&A, Wordpress Tags post-status, scheduled-posts, wp-update-post Leave a comment

How to change post status in hook?

August 3, 2022August 2, 2022 by Magenaut

I have similar problem as described in How to trap “Publish” button to check for meta box validation?
Answer there is to hook into save_post and change post type. How can I do it?
I try to use wp_transition_post_status but it doesn’t work for me…

Categories Q&A, Wordpress Tags plugin-development, post-status, publish Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress