Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [publish]

The tag has no usage guidance.

0
votes
0answers
13 views

Gutenberg publish date datepicker

I'm making some meta boxes to my custom posts, and i need a datepicker Is there a way to use this wordpress datetimepicker but without the time?
0
votes
1answer
635 views

jetpack publicize content customization

This is a twofold question : How can I customize message that jetpack posts on facebook when my post is published (select if title or excerpt are shown)? Sometimes it posts just article title with a ...
0
votes
0answers
33 views

If click on Save/Publish change Post Status to Pending Review instead Publish

Here's my problem. I need following solution. If a user is in the admin area of Wordpress and is not an administrator - and creates a page or product(via WooCommerce) - that if this user clicks on ...
2
votes
1answer
621 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 ...
0
votes
2answers
24 views

How to add publish date in the title

I learned a solution from https://stackoverflow.com/questions/36671203/wordpress-publish-date-shortcode Although it can show the publish in the title, in the source code, it still shows the shortcode ...
0
votes
1answer
20 views

What differences are there between a Privately Published post and a Draft post?

WordPress has three different post statuses: Published Pending Review Draft It also has three different visibility options: Public Password protected Private When you set a post to Published and ...
0
votes
1answer
16 views

After I publish a post where does it go

I did not set up my Wordpress blog. So I don't really know how to use Wordpress. I got an email from godaddy saying I am using to much space. I can delete a lot of post. I just don't know where to ...
3
votes
2answers
2k 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
1answer
401 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
2answers
489 views

How to run a function when post is edited or updated using publish post action?

I want to run a function A() when a post is published and function B() when the same post is edited or updated. For this, I found publish_post action which is triggered whenever a post is published, ...
0
votes
1answer
20 views

What is happening to make my Update/Publish button disabled?

I'm really wondering... What is WP doing when it disables the Update/Publish button? It seems to happen every once in a while, and I could not say why in goes disabled sometimes for just a few ...
0
votes
1answer
23 views

How publish post from pending status

wp_publish_post() function not work correct, because need to generate url and define author. Post added via User Frontend Pro plugin. Posting via admin panel works correct.
0
votes
1answer
30 views

Send Notification after post published was working but stopped after the last WP update

I'm just wondering why this snippet stopped working! It was working before the last WordPress Update! I'm using DW Notifications plugin and work without any problem in another functions. There are ...
0
votes
0answers
11 views

How Google Indexer should only index published pages

In my wordpress site I have different posts and pages. I want that google only index those pages which are published. The 'DRAFT' pages should not be indexed by google. What is the best way to ...
0
votes
2answers
504 views

Add new post using a page inside the website

I have been searching for several hours to find a way to embed the "Add New Post" inside a page in the front end. I read this post but sadly no answer to it. I have embedded the login form in ...
0
votes
1answer
501 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" ...
0
votes
1answer
93 views

transition_post_status hook doesn't have any POST data when publish with Gutenberg [closed]

Describe the bug When placing a hook on transition_post_status I can see it fired but no POST data is available, to get that post data I have to use the save_post hook which is inconvenient since I ...
1
vote
2answers
98 views

Change the text of the publish button to Save

I am trying to change the text of the publish button to save function change_publish_button( $translation, $text ) { if ( $text == 'Publish' ) return 'Save'; return $translation; } ...
6
votes
3answers
10k 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 ...
0
votes
1answer
2k 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
33 views

Prevent publish status/date saved on transition_post_status hook

I'm using the transition_post_status to prevent a custom post type from being published based on a post meta field. It doesn't seem to work entirely, and that's where I need some help. Here is a ...
1
vote
4answers
536 views

Check if comment was successfully submited

Is there a way to check that comment was successfully submitted? I want to display some text or hide a comment form for example if comment was succesfully submitted.
1
vote
2answers
59 views

Set meta field to publish date + 2 weeks

I have a meta field called postexpiry, and I want to set the value to the publish date, + 2 weeks. So if today were October 3rd, I want the field to be set to October 17th. I was thinking about ...
2
votes
1answer
37 views

Does WordPress remove draft status automatically?

Last week our marketing team placed around 35 posts inside of draft due to some legal issues in our market. This week the same marketing team has reported that WordPress has somehow Published these ...
0
votes
1answer
24 views

Publish posts only after the condition is met

I want to add 2 posts daily, so when the first post is published it should not be published unless and until the 2nd post is published. I am confused on how to do this. I have searched about ...
0
votes
1answer
21 views

Do action for only switch status for publish_post

I am creating notification e-mail for approved post. It sends mail to author like 'your post approved'. So i am using publish_post filder. function notificationApprove( $ID, $post ) { // Send ...
1
vote
2answers
899 views

How can I schedule a PAGE to go live at a future date/time?

I have no problem scheduling posts to go live at a future date/time, but last year, when I launched my site, it crashed when I tried scheduling a static page to go live (specifically, I believe it ...
-1
votes
1answer
9k views

Return All Post from publish to draft [duplicate]

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 ??
1
vote
0answers
28 views

Publish Post when URL is available else reschedule the post in wordpress [duplicate]

Following are the steps which I want to achieve 1. I will schedule a post. (Cron Job will setup) 2. When that scheduled post is about to publish then URL (which i will provide) will be checked, If ...
0
votes
0answers
13 views

Correct action to use on Custom Post Type creation with custom status

We have a custom post type with custom statuses. I am trying to hook into the moment that a post is created and updated. The idea is to send an email when the post is created and another email ...
0
votes
0answers
23 views

post is not showing more than 3949 words

I am writing a post which is more than 5000 words. When i publish it, only 3949 words are showing and rest of them disappeared. Is there any limitation or words limit for the post ? Could you please ...
0
votes
1answer
26 views

problem with publish date not always appearing [duplicate]

I have this problem where the publish date sometimes appears and sometimes it does not. I am using ACF relationship field to find the story and then bring it to my front page. <?php the_date(); ?&...
1
vote
0answers
47 views

Decide user that can publish a post

I have the users that can send posts as pending for admin approval. Is it possibile to have that the user that add this post (as custom type) may choose another user that can publish that post?
1
vote
1answer
18 views

Redirect to page list when page published

I have a role that allows users to self publish pages but does not allow them to delete or edit after. Currently, when a page is published it returns the restricted 'Cheating' message as the user ...
0
votes
0answers
207 views

Bulk Post update_post_meta

how can use this code for update just post_meta ? here my code : function update_all_posts(){ $args = array('post_type'=> 'post', 'post_status' => 'publish', '...
1
vote
0answers
231 views

How to switch wordpress post status between publish and schedule in MySQL?

I am writing a program to switch a post between publish and schedule For a scheduled post, I try to set post_status from future to publish, and set a past time to post_date and post_date_gmt, but the ...
1
vote
1answer
2k 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
3answers
265 views

Setting dirty on customizer

When you are using the wordpress customizer, if you don't make any changes to the settings, the wordpress customizer doesn't enable the publish button. And it shows like this: And I want it to be ...
0
votes
2answers
1k 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
28 views

WordPress Comments are automatically publishing

I want to manually approve comments when someone will comment on any of the post. Right now when someone comment on any of the post these are automatically approved and published. I have changed ...
0
votes
1answer
165 views

Add Password Generator on password protected page

I'm looking for add a password generator with 14 characters on the protected pages like in the picture. I search something like what is used when you create users but for page password.
0
votes
0answers
11 views

Let user publish posts on community page

I want to create a theme that lets the user publish posts (or all posts in an entire category at once) on a certain WordPress page. The user should be able to write and edit those posts and if one ...
0
votes
3answers
49 views

how to execute some code after a post is published in Wordpress [duplicate]

I have written a simple code to do something after a post is updated or published (its related to the varnish purge). I put my code inside post.php file. Everything was just fine before the latest ...
2
votes
0answers
301 views

Save and Publish button not working after installing SSL

I'm having a trouble editing my wp page. I installed an SSL certificate and everything on the page works fine. However, when I try to edit the page through Wordpress Customizer it doesn't let me save ...
0
votes
1answer
19 views

Front Page post mirroring revisions to other pages, constantly updating itself

The site I'm working on has a very strange problem. When any page is updated, the Front Page is updated with the same content. Changing what page is set to the 'Front Page' seems not to matter. I ...
1
vote
2answers
1k 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 ...
1
vote
1answer
39 views

Automatically Updating Publish Date Bug

I recently added a function to reset the publish date when a user updates a page. The code is as follows, thanks to @s_ha_dum for it because it works great except for one annoying instance. function ...
1
vote
0answers
16 views

Published site reverts without changes to theme

I recently added a search bar to our website by adding a plugin and adding that plugin into the appropriate place in our theme. I also added an event listener as an attribute on an element in another ...
0
votes
1answer
850 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
1answer
72 views

Sort / display recent posts by publish date

I recently renovated some sites and made many small (usually typos) corrections to several posts. That of course changed the last update date, so that now, if I display recent posts in a widget, they ...