The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
29 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
36 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
23 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: ...
-2
votes
1answer
30 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
27 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
28 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
1answer
45 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
37 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
0answers
36 views

Wordpress Author Posts Review After Every Change In The Same Worpress 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
1answer
21 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
33 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
13 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
18 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
140 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 ...
0
votes
1answer
29 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 ...
0
votes
1answer
29 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 ...
0
votes
0answers
51 views

Send ALL new posts and edits for moderation before publish

I want to have ALL new posts / edits moderated. I.E. When any user from a specific role (can be WP role such as contributer, or a custom created role) creates a new post, or edits an existing one it ...
-1
votes
1answer
227 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 ...
0
votes
1answer
232 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
27 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
35 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
30 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
144 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
119 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
1answer
142 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
1answer
63 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
2answers
1k 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
58 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
0answers
39 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 ...
0
votes
1answer
170 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: ...
0
votes
2answers
1k 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
45 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?
1
vote
1answer
695 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
80 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
155 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
46 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
110 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
39 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 ...
2
votes
2answers
1k 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' ...
2
votes
1answer
206 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
2answers
50 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
42 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
375 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
106 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
27 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 ...
0
votes
3answers
570 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?
1
vote
1answer
383 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 ...
3
votes
1answer
652 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
0answers
70 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
110 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 ...