The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
9 views

Countdown Timer to Publish Draft

I am attempting to create a way for specific draft posts to be published after a 36-hour countdown. Basically, the site allows post submissions which are voted on, and the winning post gets ...
1
vote
2answers
32 views

Returning ACF custom field from publish_post

I'm trying to return a custom field as soon as a post gets published. I'm using the publish_post (or {status}_{post_type}) action, but it looks like the custom fields are created after the hook. My ...
0
votes
1answer
15 views

I am getting “0” in the starting of my post description at home page

See here at home page with all posts I am getting "0" in starting.
-1
votes
1answer
54 views

Access post meta just after publishing

the following code is supposed to store post meta of the recently published post to the variable $temp. But it doesn't, $temp is always empty. This seems to happen because "transition_post_status" ...
2
votes
0answers
18 views

Publish post when when edit post form submitted with enter / return pressed on keyboard

How do you publish posts when the post edit form is submitted with the enter/return key on the keyboard. By default WordPress saves the post in draft status. To provide some background, I have an ...
0
votes
0answers
46 views

Retrieving post meta of recently published post [duplicate]

I want to write a function which has to retrieve meta data of a post (LearnDash quiz) at the moment when it's published. function add_quiz_shortcode($new_status, $old_status, $post) { if ...
0
votes
1answer
15 views

Publish post and create additional posts with same content

I'm building a site which allows authors to create a custom post type, and optionally elect to create X amount of additional posts with the same content. In this case all the content is meta values. ...
0
votes
1answer
20 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
37 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
26 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
20 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
35 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
1answer
29 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
26 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
10 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
52 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
0answers
27 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 ...
0
votes
1answer
30 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
24 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
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
39 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
118 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
201 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
0answers
141 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
0
votes
1answer
35 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
70 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 ...
0
votes
1answer
73 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 ...
1
vote
1answer
82 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
65 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
75 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
68 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
80 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
82 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
121 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
74 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
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
1answer
77 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
136 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
465 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
60 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
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
394 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
343 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
33 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
40 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
44 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
286 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
138 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 ...