The tag has no usage guidance.

learn more… | top users | synonyms

15
votes
2answers
9k views

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

I need to display the online status (online/offline) for each author page (custom author page template). is_user_logged_in() only applies to the current user and I can't find a relevant approach ...
7
votes
1answer
57 views

Let private posts stay in status “private” after edit through “editors”

I'm using some private posts for intern purposes. When an editor changes something on these posts, its status turns to pending "review" and I have to publish it again as a private post. When an ...
6
votes
1answer
4k views

How to display the status of users (online - offline) in archive.php

I am using the code the user status How to check if a user (not current user) is logged in?. On page profile of the author it works well (thank you guys). But if I put on the archive page, at the ...
4
votes
1answer
1k views

How to change “Draft” string for status of custom post type to “Unavailable”?

ANSWER MOD: just an important mod to the chosen answer: // check if you actually have drafts; also avoids extra '|' separator if (isset($views['draft'])) { // 'Drafts' should be added (and come ...
3
votes
2answers
3k views

Turn Off Automatic Trash Deletion?

I have a client who wants to use the trash feature, but keep items in there indefinitely (I have no idea why, but they insist on it). From reading this codex article on the trash status, I see that ...
2
votes
1answer
68 views

How does WordPress track that a certain User is Logged-In

I am trying to identify the elements that WP uses to track that a user is logged in at any given time. (1) I know WP sets a COOKIE for tracking Does anyone know if WordPress also sets a _SESSION ...
2
votes
1answer
479 views

How do I limit the status options for bulk/quick edit to only Published and Draft?

For my custom post type, I only want to have "Published" and "Draft" as the available options in the bulk edit and quick edit screens, i.e. I tried hooking on to the filter ...
2
votes
1answer
113 views

How do I batch create revisions of all posts?

I cleaned up an old-site from pasted tags, manually created lists, etc, and I'd like to keep the old posts as "revisions", so we can easily "compare" with the old posts and retrieve/revert the ...
2
votes
1answer
491 views

add filter to “quick edit menu” in wordpress admin

i am currently working on a wordpress plugin. the plugin includes a database table that being update every time a post is being created, edited or deleted with the data of that post. one of the ...
1
vote
1answer
36 views

How to integrate blog status?

I want to add a "status" to my wordpress blog. My definition of status is a piece of text that say something about the blog that could be changed every day or not changed in month and completely ...
1
vote
1answer
934 views

Allow users mark posts as “complete”?

Any search keyword suggestions to help would be appreciated - not sure how best to describe this query :) I have a custom post type "module". I have ~300+ modules in my install. I have ~100+ ...
1
vote
1answer
93 views

All, published and pending order

On the list tables of the administration panels, I want to change the order of the filters on top of the table. What I want: Pending Published All I tried to act on a line from the "wp-list-table"...
1
vote
2answers
603 views

How to change post status from frontend?

I'd like to add the posts in my loop the ability to toggle them between different post statuses (e.g. publish/draft). What's the best way to do it? Thanks in advance!
1
vote
1answer
285 views

$error = 404 after caught add_rewrite_rule

I have a rewrite rule as this to caught old urls from a previous version of the site: add_rewrite_rule( '(ninos|familia|hogar|mujeres|hombres)-[a-z-]+\.php', 'old_id_redirect.php', 'top' ); The ...
1
vote
0answers
349 views

Restrict edit, but allow preview for custom post status

I am developing a Wordpress site with Edit Flow plugin, so I can create custom post statuses to manage author and contributor posts more easily. So I have created custom post status and I've got ...
1
vote
0answers
116 views

Wordpress capabilities on pending post status

I have user with contributor user role. In default if you publish article as contributor you can only view it and you can't delete or edit it. But when you submit new post for review, you can do all ...
1
vote
1answer
367 views

Show user info in a hovercard [closed]

I whant to display user info in a hovercard. I use a jquery plugin to for the hovercard. I call my file like this <?php include 'includes/tooltip.php'; ?> and this is my code from tooltip.php. &...
0
votes
3answers
3k views

How to check if page has status published

How to check if page id(SomeID) is actually published?
0
votes
1answer
423 views

Hiding by default specific post status on backend list?

I created various custom post status options (like default ones: "published", "draft" and so on) and one of them is "project closed". I need to hide/exclude by default from post list in the backend ...
0
votes
1answer
160 views

Change name of existing post status type

I've been googling around, and struggle to find any solutions on how to add custom post status. Id like to add 2 a new status called "unread" I've seen the codex explaining how to register a new ...
0
votes
1answer
1k views

Template redirect template loaded, but the header 404

I've created a template redirect for a given url, ex.: test.com/test Test is page is not exists, i'm just checking the url from query_vars, if its match, i load the template with include(file.php);...
0
votes
1answer
531 views

418 header status, I'm a teapot [closed]

I'm just backing up a clients via ftp site prior to working on it, when suddenly all urls are returning an error page with the header status being 418. A quick Google finds that this was created for ...
0
votes
2answers
986 views

Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public

I want to remove the entire section that says Save Draft, Preview and Status: Draft and Visibility: Public. I want to not show it. Its ok if it is still fuctional. Attached is the part I do not want ...
0
votes
0answers
21 views

Hook into Post Exirator's expiration code

I need to run some code when a post from a custom post type is set to draft, which occurs automatically with the Post Expirator plugin. My code is set to run on the publish_to_draft action, however I ...
0
votes
1answer
31 views

Submitted for Review back to a Draft page

I would like to allow a WordPress contributor to change a draft page Submitted for Review back to a draft page without giving the contributor the capability to publish pages. I have tried without ...
0
votes
0answers
18 views

Unable to alter page status

After upgrading to 4.3 all of a sudden we find ourselves unable to alter the post or page status, visibility, and previewing now opens an editor window in a new tab. Repairing the database and ...
0
votes
1answer
474 views

Function/filter or plugin to change post status based on custom field value

I am looking for a way to change the post status of some posts based on custom field value, from published to pending for example. How might this be possible? My solution: $post_ids = array( 1235, ...
0
votes
1answer
145 views

wp.getPosts with status = 'trash' using node.js

I was wondering how to set the filter option for wp.getPosts. I want to get posts with a status of 'trash'. filter is currently blank, and returns all posts other than trash. I am using the xmlrpc ...
0
votes
0answers
70 views

Why can't I update the post status?

I am struggling to work out why a simple sql update is not changing the post status. Help would be greatly appreciated. I'm running woocommerce on wordpress 3.8 I'm running the following code: $...
0
votes
1answer
132 views

Get publish post link?

Is there a way I can call a link so when clicked it publishes the post via the ID I provide? I have get_delete_post_link( $postID ) set fine, and would like to do the same to make a draft go to ...
0
votes
1answer
328 views

Admin - create custom post status and display above table

How do I create a custom post status and display it above the table of my custom post type? Example: All(9) | Published (7) | Custom_Status(2) I used the advance custom fields plugin to create a ...
0
votes
0answers
351 views

WooCommerce New Order Check if Paid [closed]

I am creating a press release system, where I want to check if the new order has been paid or not, and accordingly I will set the post meta. I am using the following code, but it's not working, maybe ...
0
votes
1answer
86 views

Show 'add comment' link for status updates in Twenty Thirteen

I have WP 3.6 running on my server. After playing around with it, I noticed that it's not very intuitive to add comments to a status update; Guess how? After some thought, I have decided I would ...
0
votes
1answer
54 views

Identify and display the fact that user is admin next to username in comment section

For all users to see. Not only the admin in cause. Also I am using a plugin called simple user ranking for displaying the user rank which is calculated for the number of comments posted, so I need to ...
-1
votes
1answer
22 views

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

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. $post_status = 'draft'; I would like to use publish. What should I ...
-2
votes
2answers
164 views

Post Format Status [closed]

I'm new at wordpress theme development. We inspected too many themes but didn't see any common culture at post format status. I wanted to ask how you're using this format, both front side and admin ...