The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
7 views

How to Test a Blog Post for Publish vs. Update Status [duplicate]

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
0answers
17 views

Wrong picture from Wordpress to Facebook post

I have a blog (paidis.com) and almost everytime I publish something on Facebook, Facebook gets a wrong picture. I was trying to solve this but I couldn't, so I was using the option "upload another ...
0
votes
2answers
301 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?
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 ...
0
votes
1answer
799 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
votes
0answers
29 views

Is there a way to create a revision when saving a draft?

Is there a way to create a revision before the post is published? It seems that I have no control over when a revision is made and it seemed like the post had to be published to create a revision but ...
0
votes
1answer
43 views

disable publish button until condition is not met

I currently wrote a plugins to customize my wordpress website. I surprisly find it easy to do many things with hook. Now I want to make author not be able to push publish button if no category is ...
0
votes
1answer
13 views

using add_action without having custom plugin or theme

I need to send an email after an author publishes or updates a post. But I don't like developing custom plugin or theme. Is there any plugin that runs a php script after publish. Or where can I insert ...
0
votes
1answer
28 views

How can I get the user that publishes a post?

I have multiple users. Some are writers, others are editors. Is there a way to get the editor (id) that publish the post? I am able to get the author id but the not the editor's id that publish the ...
0
votes
0answers
20 views

problem with blank page

i have a real big problem with my wordpress website functions.php when i put the following code to achive post view and thumbnail. i'm getting the blank page error which when i publish or update a ...
0
votes
2answers
45 views

How to add custom status to quick edit

I have added some custom post status to WordPress, I can able display in New and Edit interfaces of POST. I would like to display those to quick edit too. Also I need to apply some condition to ...
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 ...
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 ...
0
votes
1answer
21 views

new_to_publish fires multiple times

i have been trying to use draft_to_publish & new_to_publish to create an update when ever a post of a specific type (cpt) is published... it works but published 600+ times instead of one time! ...
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 ...
0
votes
3answers
89 views

How to hook into publish_posttype?

I'm trying to hook into WordPress publish. The code below is what I'm using, but it doesn't appear to be running. I have it in a plugin file that I deactivate/reactivate each time I make changes ...
0
votes
2answers
89 views

How to show an error message after publishing a post?

I'm using the transition_post_status hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under "Edit Post" and above "Post ...
0
votes
1answer
29 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 ...
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 ...
0
votes
0answers
19 views

Wordpress Native Function To Show Publish Box, Select Categories Form etc On Plugin Page

The picture above showing the default forms those are available on metabox of wordpress post/page editor screen. Is there a wordpress native function to show those forms on a custom plugin page ...
1
vote
3answers
228 views

Editing Screen: Make Update or Publish Button Follow The Page

The Problem: I am currently in the finishing stages of a premium theme I've been developing and all is mostly well. For pages I have a few custom meta boxes for adding in slideshows and other ...
2
votes
1answer
399 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
1answer
55 views

Prevent post from being published if no category selected

I do not want a user to be able to publish a post if no category is selected. I don't mind throwing a JS alert or handling this on the server side as well. Anyway, how can I ensure this? Note: ...
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.
0
votes
2answers
179 views

post_status => publish not working

I have a front end form that let users submit a post. This is how i store the data when a post is submitted : if ( isset( $_POST['submitted'] )) { $post_information = array( ...
0
votes
2answers
30 views

How to handle a post before publishing?

I want to do a regex match to each post before it gets published, and if the regex fails to match, delete the post entirely, what hook should I use?
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?
0
votes
1answer
162 views

Hide permalink and preview button and link on custom post

anyone know how to custom box that contain "Publish,save draft,and preview button" ? i'll hide all button except Publish button. and same as "change permalink" also "view,delete,edit" link inside post ...
0
votes
2answers
35 views

Post publish date [duplicate]

if I have more than one posts that publish in the same day, the_date() function does not print publish date. How can I fix it? thanks I solve this by: "the_time(get_option('date_format'));"
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 ...
0
votes
1answer
60 views

Updating User Meta from Custom Post Field Upon Publish Not Working

I'm trying to get the user_meta to be updated based on the custom post field type. However the information won't transfer if the new post is published by a user through a frontend form. Currently it ...
0
votes
1answer
31 views

Publish a Silent Post without updating Feed

Is there a way to publish certain posts, silently without updating the feeds and those posts also should not appear in the home page. Appreciate your help.
0
votes
1answer
35 views

I need to modify drafts using custom data from database and then publish it

First of all I'm still relatively new to programming and wordpress development. I'm building a plugin that takes custom data from database and a list of saved drafts and then modifies draft chosen ...
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' ...
0
votes
2answers
41 views

Unable to access wordpress login.php [closed]

I has been completed a theme for a client. I Used to access the live wp-admin page using http://name.myname.com/wp-login.php But that page shows just a blank(white) page. How to get fix that? ...
0
votes
0answers
35 views

publish posts immediately when updating

i'm looking for a way (maybe a plugin) to have a choice of just updating an already published post, and updating and republishing it with a current date and time basically, two options when editing: ...
0
votes
1answer
195 views

Notification to Admin or Author upon new post [duplicate]

I am using a custom function with 'publish_post' hook for a notification to the author when the post has been published but the issue I am facing right now is that the notification is being sent out ...
0
votes
1answer
59 views

How to edit wordpress post without republishing

Is there a way to update an older post without republishing the post? If I am looking at a previously published post and discover a misplaced comma or reformat an image I don't need all my RSS and ...
0
votes
2answers
21 views

Problems when writing a post

I have a blog, with Duena Theme, and when I write is all ok. The problem is when I publish that text, and the margins of the paragraphs split my words. For example The horse is a very wil d animal ...
1
vote
1answer
229 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 ...
0
votes
0answers
56 views

Adding a Custom 'Now' button under 'Published on' header to return current date and time

I want to add a new 'Now' button under the 'Published on' header so as to return the current date and time to the post update time. This would help people who want to update their post with a recent ...
0
votes
1answer
92 views

How can my plugin display a populated new post window

I've written a plugin that creates a feed reader like google reader in wordpress. Currently I let folks reblog feed items by using the built in WP PressThis plugin url. I pass in parameters and WP ...
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 ???
0
votes
1answer
46 views

Change event firing in wordpress

I have to run a function when a post is published. The function checks a custom meta value and works accordingly. I am using couple of hooks for this purpose: new_to_publish draft_to_publish ...
0
votes
3answers
221 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 ...
0
votes
1answer
26 views

Tracing dashboard publish settings from input form in WordPress

I need to replicate a plugin's input form from the dashboard and make it available to the public so that they can enter data directly to the DB rather than using a form that is emailed and then ...
0
votes
1answer
94 views

Custom Meta Box Causing Error: “Are you sure you want to do this? Please try again.”

My custom post type have a meta box that is listing another custom post types in its meta box. And it is causing error each time I try to publish a post with that custom post type. It is always bring ...
0
votes
0answers
29 views

How to preview and publish multiple drafts?

How can I as administrator preview all post drafts like in a regular archive, with simple "publish" and "trash" buttons/links for each post? Do I need to develop a plugin or could this be done simply ...
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, ...
0
votes
3answers
316 views

Can't publish custom post type - “You are not allowed to edit this post.”

Hey guys I've created this post type but when I click the publish button I receive the message: You are not allowed to edit this post. Have I done something wrong in my code to disallow anyone ...