The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
14 views

Assign published posts to another user automatically

Usually, I write posts as admin, as this is more comfortable from the blog administration point of view. But I want the posts to be assigned automatically to another existing user with editor ...
0
votes
1answer
29 views

Add delay to publish post

I am running multiple servers and have an issue when people Publish a post immediately after uploading a Featured image, the image is is not available on all server immediately. I know that I can ...
0
votes
1answer
22 views

display wordpress user who published a pending post of another user

I have a custom post type, when I view my posts of this type in the dashboard I see: Title Author Date Added as well as a few more I have added My question is how can I display (like the author ...
0
votes
0answers
17 views

Keep pending post date as publish date

Is there some function which will set publish date of post same as pending date? I wish to keep pending time as published time, to prevent WP from using time when post is published as published date. ...
0
votes
1answer
32 views

Publish button inside custom field group

Is it possible to move the publish button out of the publish metabox, completely remove the metabox and then put the publish button inside the custom field group? Ask if you need more information, I ...
0
votes
3answers
885 views

How to give capability (publish contributors posts) to author role?

I am not a PHP programmer, just a simple WordPress user. How can I allow author role to allow publication of contributors posts? What's the technical name for this?
0
votes
1answer
24 views

Ajax function on #publish only saves as draft - how to make it publish?

I have a custom post type called "shift" (as in shifts worked by employees). When shifts are published, I run an Ajax function to check that this shift does not have a scheduling conflict. If there ...
1
vote
0answers
22 views

publish_post conflicts with save_post

my plugin has a save_post hook used to save the custom fields. now I add a publish_slider hook used to change a checkbox's status(slider is a custom post type). but it doesn't work properly. the ...
0
votes
0answers
9 views

Replacing RAMP with a single Wordpress instance?

We currently use a commercial plugin from CrowdFavorite called "RAMP" that allows you to move content between Wordpress instances. Our workflow is like this: editors create and edit content in a WP ...
0
votes
1answer
39 views

Disable Facebook Comments Automatically On CPT

I am working with the Facebook comments plugin. I have a custom post type that never uses Facebook comments. I am trying to create a function to automatically turn these off when the custom post ...
0
votes
1answer
75 views

Send email when publish new post in certain categories

I'm looking for php code that will allow me to do the following: when new post publish in categories which ids are 12 and 34, email will send to all users.
0
votes
0answers
68 views

Wordpress Author Posts Review After Every Change In The Same Wordpress Post

guys pardon my english, I am new to wordpress & I have been trying to set up a wordpress website for product reviews where new users will submit their reviews for the product/products. New user ...
0
votes
0answers
24 views

Hook on Publishing a Post Doesn't Fire Correctly (or so I think)

Currently, I'm trying to send out a Push Notification to iPhone every time a blog post is published on my WordPress website. I am using a PHP script to send out the push notification (which works with ...
4
votes
4answers
2k 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.
0
votes
1answer
27 views

Authors should not publish

In my Blog should Authors be not allowed to publish posts but to CREATE posts for revision! Admins should later verify and publish them. How can i do it? Thanks for help!
0
votes
0answers
16 views

Jetpack Post by Email at specific Date and Time?

Currently, I can post by email using the Jetpack plugin and I can use the [delay] shortcode to set the date it should be published. However, I need to set the time of day it should be published as ...
0
votes
1answer
70 views

Update status of all posts in a category

For one of my project I just want to change the post status of all the posts inside a specific category from publish to pending. It is possible to change status of multiple posts at once? I want to ...
0
votes
0answers
24 views

How can I get taxonomy terms and custom field values of a newly created post

I created a system where people can post a CPT via a frontend form. Now, a mail has to be sent out to inform about this CPT. I tried this approach, which works, but I cannot get to the custom field ...
1
vote
1answer
37 views

Is there a way to know if a post has been published through XML-RPC?

It's all in the title, I'm looking for a way to know if a given post was published through XML-RPC, versus published by hand in the WP admin. Pseudo code : if( !wpse_from_xmlrpc( $post -> ID ) { ...
0
votes
1answer
99 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
158 views

I want to send push notification just after publish a new post

I would like to send push messages from my website to iOs/android users everytime I publish a new post. Which would be the same as execute php code I think. I have tried to paste a php script which ...
0
votes
1answer
2k views

How to change post status in hook?

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 ...
1
vote
3answers
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 ...
0
votes
0answers
105 views

My page won't publish

I hit 'publish' on a page a few days ago, and it is still not appearing on the website. Can you please help me fix this? Thank you, Sarah
2
votes
1answer
757 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 ...
0
votes
1answer
34 views

Show recent published posts

I want to list recent published posts of my wp blog and exclude certain posts of some categories. The following code works fine, 10 recent posts are listed and posts in the listed categories are ...
0
votes
0answers
58 views

Send Custom Post Notification to Followers

I am trying to modify the function below (which works great for me ) to notify author followers that the author has published a new post, but I seem to be going round in circles. function ...
2
votes
3answers
675 views

Detect Post Type when publish_post is ran

I currently have WordPress build an XML Sitemap everytime a POST or PAGE is PUBLISHED by using this Action... add_action("publish_post", "create_news_sitemap"); I am not doing the same process but ...
6
votes
3answers
939 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 ...
1
vote
1answer
78 views

Custom save button shows 'Are you sure you want to…' dialog

I'm looking for a way to replace the submitdiv meta box (publish box) with just one simple save button. By looking at Core I see there's a simple function returning a submit button: ...
0
votes
0answers
62 views

Author page update to be reviewed by admin before publishing

I have used the capability manager enhanced plugin to extend the capabilities of an Author to allow them to edit the content on a page that they (and only they) have authored. When they make a change ...
0
votes
0answers
68 views

wp_publish_post to saved draft, permalinks broken

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: ...
3
votes
1answer
809 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 ...
0
votes
3answers
745 views

Get only used meta_values

this is how I'm getting the meta values: $apart_locations = $wpdb->get_col( "SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = 'postal_location' ORDER BY meta_value ASC" ); This is how ...
-2
votes
1answer
56 views

Return All Post from publish to draft

I do something error, I transfer yesterday all post from draft to publish by my user, Now how can i return all this post to draft ??
0
votes
1answer
69 views

Where is publish_post hook fired?

Hook publish_post, which does not necessary need to be run on post publishing only, it can be used for any post type and any post status in this format {status}_{post_type} which also makes it hard to ...
0
votes
1answer
110 views

wp_publish_post breaks permalinks

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: ...
2
votes
1answer
70 views

How to add a checkbox inside the “Publish post” widget?

I'm building post to email plugin and I need to add a checkbox to the publish post widget like this one: My idea is to add a checkbox that says "Send this by email", and get that info inside the ...
0
votes
1answer
68 views

Publishing VS2010 Web Solution to WordPress

I am wondering if it's possible to publish a website that I have created onto WordPress? If so, how? The site was created using VS2010. I've done some searching online, and all I've came up with are ...
1
vote
1answer
119 views

I can't preview post's change once they are published

The preview function works fine when posts are just draft. The url looks like this : http://exemple.domain.com/blog/?p=12&preview=true Then when I pubish my posts, let's say I want to change ...
0
votes
0answers
16 views

Get taxonomy on publish

I'm not seeing exactly what I'm looking for, so forgive the potential repetitive question. On publish_post, I'd like to check the current post's taxonomies and do something with them. However, the ...
0
votes
1answer
20 views

Firing page_publish where page is child page

I'm having difficulty getting a function to fire when publishing a new page. I'd like it to fire when a new page is being published or edited but ONLY when that page has a parent. Here's what I've ...
0
votes
1answer
419 views

Trigger email send after custom post publish

I have a custom post type set up so that a user in the role of contributor can create a post, but an administrator has to approve the post and publish it. I'd like to hook into the event when the ...
1
vote
1answer
77 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 ...
0
votes
1answer
57 views

How can add custom commands in post-new.php in wordpress

I am new here. I have a php code that create an html file and upload it inside a folder. How can i add my custom php code inside post-new.php so when the post is published to do this... Also i need ...
7
votes
2answers
4k 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
2answers
979 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 ???
0
votes
1answer
45 views

How to Test a Blog Post for Update vs. Publish Status — Unique

I want to perform an action when a blog post gets published for the first time only. I do not want to take action on any subsequent update. I wrote a plug-in to do this. However, it runs the function ...
-1
votes
1answer
377 views

Emailing Authors only when a CUSTOM POST TYPE post is published- not when edited later [duplicate]

I have the following function that emails authors of a custom post type when the post is published which is great, but I would like it so that it does not email them on any future edits after that to ...
2
votes
1answer
286 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 ...