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 [scheduled-posts]

WordPress allows users to set a future date or time for publishing a post. Especially on sites with low visitor counts missed schedules are common. There are ways to solve this.

0
votes
2answers
21 views

Include future posts in tags and in search

I am using something like this to query and display future or scheduled posts on my homepage: <?php query_posts('post_status=future&posts_per_page=10&order=ASC'); while ( have_posts() ) : ...
0
votes
1answer
25 views

Automatically delete posts one by one depending on published time

How can I delete the posts one by one depending on the published time of the post every 24 hour? Why this snippet deleting all the posts at once, even if they are not published in the same hour or ...
0
votes
1answer
11 views

Schedule an action callback

I have a function in which I want to send out emails of expiring account. Is there a way of scheduling a "doaction()" or similar. What I want is this: doaction('Something here', ...
0
votes
1answer
10 views

What am I doing wrong creating post draft via wp-cron? (wp_schedule_event & wp_insert_post)

So I've been googling and apparently a lot of people have struggled with this for the past X years and there doesn't seem to be any clear responses on Stack Overflow. What I am developing is a ...
0
votes
1answer
67 views

Scheduled posts are being published immediately

I do have the same issue as in here. Since I can't leave a comment and so I post another new topic for help. Does anybody else can solve it? I come across the same issue suddenly. I haven't tried to ...
1
vote
1answer
9 views

Set the publication date independent of the scheduled publication date

I want to write a post today (2019-01-15) I want to schedule the publication for the future (2020-09-03) I want the published date to reflect when it was originally written - so it appears as example....
0
votes
0answers
35 views

How do I change the permalink of a scheduled post so that it can be linked to?

When you create a post of any type (either post or page or custom taxonomy) it gets a permalink that visitors can click on and visit. http://example.com/my_first_blog_post_permalink/ However, if ...
0
votes
0answers
97 views

Can run cron event manually with WP-CLI but not with any plugin, unsure if it's being scheduled

I have a cron event that I am able to manually run with wp cron event run --all When I go to my dashboard and go to WP-Crontrol OR Advanced Cron Manager, I can see my event listed and tell it to ...
0
votes
1answer
157 views

Scheduling a post using publish date from a custom field. Resulting post is set as published in the future instead of scheduled

I've been trying to set a scheduled publish date using an ACF field. I'm trying to make a custom backend editor for computer-illiterate clients to create and edit posts. I believe that the default ...
1
vote
0answers
224 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 ...
0
votes
1answer
58 views

Add scheduled page or post in the menu section on back-end

I want to add scheduled page/post in the menu section on back-end before publish the page/post. Please see the screenshot:
1
vote
2answers
101 views

Update Modified date when scheduled posts get published

I have a post scheduled to go out 1 week from now. I made the change today to schedule it and let it be. When it finally gets published, the post date is the date it was scheduled to be published. ...
0
votes
3answers
45 views

Is there a way to schedule changes to a page?

Our clients would like to schedule changes made to a given page (for instance by displaying the link to register to an event). Typically, the same page (/registration) should display (before the ...
1
vote
2answers
276 views

All Wordpress scheduled posts are being published immediately

I am having a problem when creating scheduled posts. I create the posts as normal, click edit, set a scheduled time and click ok then the shedual button. Soon as i do this i check the website and the ...
0
votes
1answer
193 views

Is it possible to schedule a page edit to go live on a certain date?

On one of our websites, we have a page with a text block (Visual Composer) about a special offer which is available until the 1st of July. I, of course, would like that to disappear as soon as the 1st ...
0
votes
1answer
77 views

Create blog post from external source and set publication date

I'm building a script which creates new blog posts from an external source. my code is as follows: // Load WordPress require_once '../../wp-load.php'; require_once ABSPATH . '/wp-admin/...
0
votes
2answers
501 views

Disabled wp-cron, set up system cron but still have missed schedule posts

I have a caching plugin (WP Rocket) so I am aware of the issues with wp-cron and scheduled posts. So, I disabled wp-cron and then set up a system cron. Now, I noticed that when a post is scheduled ...
1
vote
0answers
100 views

WordPress action hooks related to scheduled posts not Fired

I have scheduled posts to publish automatically in future. I want when theses posts are published do some stuffs, so I used below code: add_action( 'publish_post', 'after_post_published' ); ...
0
votes
1answer
350 views

Schedule reminder at exact time

I have event website. I want send reminder about event exactly 2 hours before the event to subscribers. So how can schedule wordpress to call the function exactly at time. I know about wp_schedule ...
0
votes
1answer
279 views

How to Create movie schedule by custom post type query

I want to create movie scheduler by custom post type query. That will display like: "Day 1, 15 oct 2016" 1.Movie list goes here 2.Movie list goes here "Day 2, 17 oct 2016" 1.Movie list goes here 2....
6
votes
1answer
107 views

Immediately published posts are scheduled and published 2 hours later

If I try to publish posts immediately, they get scheduled for the current time but are published 2 hours later. Also scheduled posts are published 2 hours after the planned time. In think its a ...
0
votes
1answer
134 views

WordPress automatic publish: is there a timeout when WordPress won't publish anymore?

When you schedule a post for publish, and it misses its publish time, for how long after that will WordPress publish it? I know that WordPress cron jobs trigger when a user loads the page after the ...
0
votes
1answer
1k views

How to export custom post type with ACF to individual file with automation?

I have a custom post type product using ACF (Advanced Custom Fields) I would like to schedule a daily cron task automation to export all published posts into post_id.txt, one for each post. I know ...
0
votes
3answers
2k views

“Missed schedule” posting bug

I have a low traffic WordPress (4.5.3) site at http://brandgrowmedia.ca/. When a blog post is scheduled, it frequently (~80% of the time) does not post and is marked as "Missed schedule". I looked ...
0
votes
1answer
133 views

Scheduling publish of a new version of existing page results in 404

The best way I can explain this is: I have an already published page (version 1), which I make edits to and want to schedule the new version (version 2) to be published at a later date. When I ...
1
vote
0answers
246 views

How to create a WP Cron hooks based on schedules from Advanced cron manager plugin?

I need to run the following script once per 24 hours: (1) http:domain.com/wp-cron.php?import_key=Iq_GCn7v0&import_id=36&action=trigger the following one to run after the above, once or twice ...
2
votes
1answer
236 views

Scheduling posts in database

I have more than 100 posts to schedule. I have set the date and the status (future) with a SQL query. But when the time comes the post is not published and in desktop I can read message 'Schedule lost'...
2
votes
1answer
84 views

How to schedule autopost publishing at each 60 minutes?

I am using following code to auto publish posts from images uploaded, it works but does not schedule posts publishing, all post are published right after images were uploaded by media uploader in ...
0
votes
0answers
130 views

Auto draft posts when scheduled date is reached

I have a plugin that allows all scheduled posts to be visible immediately... I'm looking for a function that will automatically set a post's status to "draft" when it reaches it's scheduled date and ...
0
votes
1answer
68 views

How to restrict an author scheduling their post date to a maximum X days ahead from the current date

How would I restrict an author in scheduling their post X (let's say 8) days ahead of the current date?
0
votes
1answer
70 views

suffix title with “EXPIRED” when scheduled post has reached it's published date

I'm scheduling and displaying all my posts in the future. I'd like to somehow add some text after the post title when the publish date is reached. In effect the post will expire at the time of the ...
0
votes
1answer
764 views

Is it normal for a scheduled post to say “Missed Schedule”

There is a custom post type I am making called announcements. When I set it to a future publishing time, say at 8:00. It will say at 8:01 'Missed Schedule'. However after a little while I will refresh ...
0
votes
1answer
129 views

How to customize 'recurrance' of' wp_schedule_event'?

I am new to WordPress development. I build a function to send email twice a day with wp_schedule_event. My recurrance is twicedaily. Is this possible to change twicedaily time to 9:00 and 14:00. If so ...
2
votes
1answer
556 views

Allow Facebook to preview posts before published

I want to allow Facebook (user agent facebookexternalhit) to access scheduled posts before they're published, so it can access meta information in order to schedule a status. Currently I temporarily ...
0
votes
2answers
585 views

How to Insert data with wp cron

I am using wp_schedule_event for Insert data every 1 Minutes in a teble. But here is some confusion where i have to add code for Insert. Here is my code which add in functions.php in my theme. ...
0
votes
1answer
858 views

Return scheduled posts with WP REST API

I'm using WP REST API plugin for a custom web application and I need to get access to the scheduled posts of the target wordpress website. However I can't find any parameter or filter to achieve this ...
1
vote
1answer
254 views

Display only one post each WEEK

I have custom post type named 'NEWS' where i already published 52 posts at a time. Now, in front i would like to display them ONE NEWS for ONE WEEK. So 52 NEWS will cover one year for me. My ...
2
votes
1answer
2k views

Change scheduled posts to published

I wrote the following function to change scheduled posts to published (I've got about 1000 of them). When I run the code below, the date change, but the status does not... Can anyone shed some light ...
0
votes
1answer
251 views

Comments on future posts

I have enabled future (scheduled) posts to display as single post so on that page comments are enabled but there is a problem when i try to post comment. I get a blank screen without any warning or ...
1
vote
1answer
980 views

Schedule Page to Menu [duplicate]

Every week I tend to have 2-4 pages scheduled though I need to get them added to my menu as well. The "Add New Top Level Pages to Menu" option won't work in my case though as the pages in question ...
0
votes
1answer
157 views

Include scheduled ( future ) posts in WordPress post navigation ( previous_post_link, next_post_link )

Is this possible? How can i change the query for adjacent posts and add 'post_status=future' to display next and previous posts for scheduled ones? I suppose i should use some kind of filter, but ...
0
votes
2answers
38 views

Posted posts scheduling to unhide for new members

So I came up with this idea. It works like autoresponder, which send already prepared and scheduled content every 7(let's say) days to a all subscribers. And for a new subscriber it starts from the ...
0
votes
2answers
2k views

has_post_thumbnail() Returns False on Scheduled Posts

I am making some changes to a custom WP template and have hit an odd issue. Published posts work absolutely fine, but when you view a scheduled post the Featured Image disappears. It's as if there ...
1
vote
1answer
947 views

Any way to create scheduled post programatically?

I'm searching through the web for any solutions that will allow me to create a post programatically with post status : Future (Scheduled Post). I'm reading through wp_schedule_event WordPress ...
0
votes
1answer
70 views

How to schedule categories?

Is there anyway to schedule categories? like I already created the categories but I don't want it published to the public until the scheduled date like how you can schedule posts.
0
votes
2answers
36 views

How to prevent people from seeing an attachment to a scheduled post that's released in future?

I'm developing a website for a large corporation. They release financial documents on specific dates and times. I've developed a custom form to upload these pdfs to articles, and custom loops that ...
2
votes
2answers
2k views

wp_insert_post to schedule a post - but nothing happens?

I'm trying to schedule a post that is currently a draft: function schedule() { $postdate = date('2014-06-11 00:30:00'); $post = array( 'ID' => 11, 'post_status' => 'future', '...
1
vote
3answers
2k views

How to Display Details page of future (scheduled) posts

My question here is to display all the single detail page of future scheduled posts. It is returning 404 page. How can this be done in wordpress? What I have used so far is $args = array( ...
0
votes
1answer
249 views

Scheduling posts via sql

I got 10k posts with dates that are in the future. I imported my posts as a draft cause it seems quicker. I have used phpmyadmin to set the status of the posts to future with this sql command: UPDATE ...
0
votes
0answers
460 views

Display “Today” Instead of Date for Pubslished Posts

I have a list of 'post_status'' => 'future' which are published at certain dates throughout the year. These posts are custom posts whith Advanced Custom Fields. Since a couple of days I'm trying ...