The tag has no wiki summary.

learn more… | top users | synonyms

9
votes
4answers
212 views

How can I delay the publishing of a page or post?

Sometimes it would be nice to be able to set a draft to be published when I'm not in front of the keyboard. Is this possible? If so, how?
6
votes
2answers
152 views

How to prevent posts from being published too close to each other?

I manage a blog which consists of about 25 writers. Sometimes a few of them are in the process of writing a new post at once, and they end up publishing them too close to each other. Is there a way ...
6
votes
2answers
137 views

Is it possible to Schedule Attachments in Wordpress?

As it's fairly well known, it is possible to schedule Posts in Wordpress for publishing. Also Attachments are actually Posts (in the more internal, technical meaning). So the question that bothers ...
5
votes
4answers
160 views

Display a post's publish date from 2112

So I am making a news website about the future, 2112 to be specific (hello, critics). I wanted to display a post's date to be from 2112. But when I try to do this from the admin panel, it 'schedules' ...
5
votes
1answer
2k views

How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button

I have a custom post type (called contacts). Since this post type is not working like a post, I don't want to show SAVE DRAFT, PREVIEW, Status, Visibility or Publish Date. The only options I want to ...
5
votes
5answers
4k views

InDesign to WordPress workflow

I'm working on a project for a monthly InDesign-based magazine that enables them to put their content online via WordPress. The current workflow is either: Copy/pasting from InDesign to a Word ...
4
votes
3answers
126 views

How to let authors revise other authors drafts, but keep them from publishing?

I want to give all authors permission to edit other authors drafts, but not publish them. It seems like the only way to give authors access to drafts by other authors is to grant them ...
4
votes
1answer
336 views

Custom post type capabilities

I've got a somewhat unique scenario that I would appreciate some assistance with. I have a custom post type, coin, for content that is automatically created by an custom import process. I would like ...
4
votes
2answers
649 views

How can I make it so the Add New Post page has Visibility set to Private by default?

I'm trying to create a plugin that alters the Add New Post page so the Visibility field says "Private" by default: Status: Draft Visibility: **Private** Publish immediately [Publish] ...as opposed ...
4
votes
2answers
691 views

Prevent publishing the post before setting a featured image?

As the title says , I want a plugin/function to prevent/inform the user when he tries to publish the post without setting the featured image. ANY HELP ???
3
votes
1answer
574 views

How to programmatically create a connection with [Plugin: Posts 2 Posts] on cpt publish?

How can I programmatically create a connection between one custom post type, cpt, (with post id known) to another on cpt on publish? I am using VoodooPress's front-end posting method to publish a ...
3
votes
3answers
885 views

How can I set a draft page as parent without publishing?

Anyone know a way round this? http://wordpress.org/support/topic/set-draft-page-as-parent I can't risk publishing as a public-facing system updates periodically from the same install.
3
votes
1answer
2k views

Post publish only hook?

Is there any hook which is fired only when the post is "published" for the first time. I dont want to execute my code when the post is "updated" or when its status is set to "not-published" and then ...
3
votes
1answer
157 views

How to add a “publish” link to the quick actions

I'm trying to add a "Publish" link by the quick actions: but I'm not exactly sure of how implement it. Here's what I've got so far: add_filter('post_row_actions', function ( $actions ) { ...
3
votes
2answers
826 views

Restrict the Number of Posts an Author can Publish (over time)?

I'm thinking maybe limit the number of posts a user can make in a given period of time. (Say a user can only publish 1 post per 5 minutes?) Is there such a plugin?
3
votes
2answers
561 views

WordPress prompt checklist before publish?

Does anyone have a suggested plugin that does the following: when a user hits publish on a post for the first time, it should have a popup, notice, or alert that asks the following: Do you have a ...
2
votes
1answer
1k views

Check before publishing, if already exist post with current custom field value

I have a custom post type with only 3 custom fields in it. $post_types = get_post_meta($post->ID,'post_types',true); $post_taxonomies = get_post_meta($post->ID,'post_taxonomies',true); ...
2
votes
1answer
82 views

How can I display a specific user's first published post?

I'm looking for a way to display a user's first published post using their unique ID. I have a function that calls a list of specific users using their IDs, and would like to display the date the ...
2
votes
3answers
2k views

WordPress plugin to publish to multiple remote WordPress blogs

I have a WordPress (.org) blog (let's call it blog1) that is used by many authors, who may create, edit and publish posts (on blog1). Each author has her/his own WordPress blogs, hosted elsewhere. ...
2
votes
1answer
1k views

Publish pending article from front end with a button?

Is it possible to take the blue publish button in back end of the wordpress and place it in the frontend near the post in my index.php. I need a way to publish the pending article without going to ...
2
votes
3answers
465 views

Peer Review Plugin for Posts?

Is there a plugin that allows for peer review of articles before you post them? IE, like a professional writer would send their work to a friend or editor to review and comment on their work before ...
2
votes
1answer
398 views

When a user creates a post (pending), send a confirmation link that allows them to publish

I've got another question for you guys! I need the following thing: User creates post (automatically sets it to pending for approval) Send the user an email with a confirmation link The User clicks ...
2
votes
1answer
375 views

In what sequence are the hooks fired when a post is “published”?

I would be grateful if someone could point out a link. I understand this may have a very lengthy answer but I searched and couldn't find any resource. Alternatively, it would also be nice if someone ...
2
votes
2answers
897 views

How to make scheduled post preview visible to anyone?

When I write a post and schedule it for later publishing, WordPress will allow me to preview the post as if it was already published but I need to be logged in as administrator (or anyone who is ...
2
votes
2answers
1k views

How can I make post fields required in Wordpress?

I am setting up a Wordpress site as a CMS and trying to figure out a way to make certain post fields "required" before an author can publish a post. In particular, I want authors to be required to ...
2
votes
2answers
610 views

How can I add a jQuery OnClick event to the Publish posts button?

I want to add a simple confirmation event to the Publish posts button, so when my client hits "Publish" it will ask him if he's sure, to which he clicks "Yes" or "cancel" and the post then publishes ...
2
votes
1answer
253 views

Unpublish all posts in a category

I have a category with about 3.500 posts. 2.500 are not published, but saved as drafts. I want to unpublish all the remaining 1000 posts from this one category. Maybe I will want to delete all of the ...
2
votes
1answer
609 views

Posts created in a Custom Post Type are lost if published without a title

I searched around and the URL below is all I could find on this problem. If I publish a custom post type's post without entering in a post title, it wipes the whole post's info and says "published". ...
2
votes
2answers
344 views

Display future posts?

Is there a way to display posts, scheduled for the future? I want to use the published data as an event date and time, which is obviously in the future. I still would like to use these posts for a ...
2
votes
1answer
97 views

Limit number of posts a user can make per minute?

So I found the solution to limiting a number of posts a user can make per day but not per minute. Here's an excerpt from the code I found on ...
2
votes
2answers
2k views

How to limit user to publish post per day and per role?

I would like to know is there any way/Plugin to limit the user published post (in a given time span) by his role? Like this: Role A -> 1 post per day and 30 post total. Role B -> 10 post per ...
2
votes
1answer
161 views

Scheduled Posts and wp-cron - Why don't scheduled posts publish if too old?

I notice that the documentation for wp_schedule_single_event mentions the following:- The action will fire off when someone visits your WordPress site, if the schedule time has passed. However ...
2
votes
3answers
637 views

Add javascript when post is published

I am trying to add javascript when a post has been published so that it's more noticable for my user but I can't figure out what to use. I tryed with publish_post and save_post, but it doesn't work ...
1
vote
2answers
1k views

How to trap “Publish” button to check for meta box validation?

I'm trying to do some form validation on my custom meta box, and I remember somewhere reading about some javascript function to disable/enable the Publish button - except I can't find it. How do I ...
1
vote
1answer
1k views

How can I automatically set a post slug based on the post title during post publish?

When you create a post in WP, if you don't specify a title rapidly, WP generates a default slug on autosave, based on the post ID. Then, when you add the title later, unless you modify the slug by ...
1
vote
2answers
856 views

Elegant way to include only published posts with get_objects_in_term()?

The obvious way is to iterate through the resulting array of IDs, get_post for each and test against post_status == 'publish'. But I wonder whether this could cause memory issues since get_post will ...
1
vote
1answer
278 views

Why does publish_{custom-post-type} fire on update?

I'm trying to fire two different actions on both publish and update. Neither should ever fire at the same time. The problem is that publish_pm_task is getting fired on update and save_post is never ...
1
vote
3answers
2k views

How to modify Publish metabox?

I'm trying to remove "Pending Review" (Status) and "Password protected" (Visibility) options from Publish metabox. Any ideas how can I do it?
1
vote
2answers
352 views

add action only on post publish - not update

I have action which adds meta field with value on post publish. Problem is that when I update post meta field is reset to default value. I already tried 'new_to_publish' instead of 'publish_post' ...
1
vote
1answer
228 views

Send email to user that his post has been rejected

I am searching for a solution for the following problem: I am using WP User Frontend, so that users can create posts in the frontend. After saving, the admin needs to review the post, and the ...
1
vote
3answers
286 views

How to access the post meta of a post that has just been published?

I am using the hook publish_post to run my code where I need the post meta of the just published post. But the post meta value I am looking for is somehow not available at this point of execution. On ...
1
vote
1answer
1k views

Modify front-end delete button to publish pending posts

I've found this helpful snippet to make a delete post link on the front-end: <?php if (current_user_can('edit_post', $post->ID)) echo "<a href='" . ...
1
vote
2answers
649 views

How to allow a user to make their post (ad) a draft, and then publish again without needing approval?

I'm using WordPress as a directory site, where a user can submit a post, which becomes their ad/listing. The users are assigned a custom wordpress role. Posts need to need to be approved and ...
1
vote
2answers
487 views

Auto Publish On Cron

I have some 100 unpublished posts. I want to publish 1 random post every time a cron is run. Is there a way or plugin to achieve this...
1
vote
1answer
144 views

Publish Post After Click On A Link

I have a frontend posting form (CF7), where user inputs (among other data of course) his email. Now I set the status to pending. What I want is, that the user would get trough autoresponder a mail, ...
1
vote
1answer
361 views

Update post meta on bulk edit / update

I have a small problem with a code that works most of the time. I just discovered it cannot be used when I bulk edit custom post type. If I'm on individual post page and hit publish, the custom post ...
1
vote
2answers
58 views

Make the Status, Visibility, or Date fields opened by default in the Publish box

By default, the Status, Visibility, and Date fields in the Publish metabox are closed, and you have to click Edit to show them. Is there a way to make these fields visible by default? The hidden ...
1
vote
2answers
151 views

Print a message if excerpt is empty after posts have been publish/update!

I don't think I can make the excerpt required, but if anyone knows a workaround please share. At least I want to print a message if excerpt is empty after posts have been publish/update, maybe a red ...
1
vote
0answers
27 views

Calling Different Custom Post Timestamps in a table

I use WordPress to run an events site that people can sign down to if they have a subscription. At the bottom of each event, if you are admin you can see a guest list with Name, Email, Tel, Avatar ...
1
vote
0answers
41 views

Controlled publishing in Wordpress

We are currently rebuilding our corporate website and I'm looking for a way to control the publishing of pages. The flow to create or amend pages would be something like this: 1) New page is built or ...