# Publish to Discourse and scheduling

**URL:** https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043
**Category:** WordPress
**Created:** [28 Abril, 2015 21:10 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043 "2015-04-28T21:10:57Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [28 Abril, 2015 21:10 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/1 "2015-04-28T21:10:57Z")

</div>

So we have a problem when posts are created or published by other plugins, the value specified for ‘publish to discourse’ is always ignored.

Discussing the issue with one author of such a plugin the response was:

> their plugin may be using filters that are not triggered upon an anonymous update

and

> In some cases we aren’t able to accommodate for plugins that don’t trigger filters/actions in a global manner.

Is this a possibility? Raised this on github a while back with @benword and thought it was worth checking before I reopen the issue.

---

<div class="post-metadata">

### Author: ![benword](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benword/32/493782_2.png) [@benword](https://meta.discourse.org/u/benword)
#### Post date: [29 Abril, 2015 00:40 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/2 "2015-04-29T00:40:35Z")

</div>

The plugin uses the `transition_post_status` filter so it _should_ be fine. Maybe something in the `publish_post_to_discourse` function needs to be updated.

Could you provide us with which plugins aren’t working for you so that I can try to reproduce?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [29 Abril, 2015 12:23 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/3 "2015-04-29T12:23:25Z")

</div>

The big one at the moment is CoSchedule:

> **[CoSchedule](https://wordpress.org/plugins/coschedule-by-todaymade/)**
>
> The only marketing suite that helps you organize all of your marketing in one place.

It’s tied to a subscription service, so if you can’t figure out what they’re doing from the code let me know, I might be able to give you access to a site where it’s implemented.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [6 Mayo, 2015 07:45 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/4 "2015-05-06T07:45:28Z")

</div>

Did you need anything from us to look at this one @benword?

---

<div class="post-metadata">

### Author: ![benword](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benword/32/493782_2.png) [@benword](https://meta.discourse.org/u/benword)
#### Post date: [6 Mayo, 2015 08:02 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/5 "2015-05-06T08:02:54Z")

</div>

I’m able to use wp-discourse with the WordPress scheduled post functionality, so if a plugin is causing a conflict it would be helpful to reach out to that plugin author (especially since you’re paying for a subscription from them).

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [22 Enero, 2017 23:55 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/6 "2017-01-22T23:55:39Z")

</div>

I’m having this same issue.  
Posts that are scheduled (using native WordPress) don’t publish to Discourse automatically. I have to go back once they are published and hit the Update button in order to publish. Any ideas what I could try @benword?

 ![](https://global.discourse-cdn.com/meta/original/3X/7/7/7781d03518f7425cfe1201b24c069f778f77d0d7.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [23 Enero, 2017 02:56 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/7 "2017-01-23T02:56:46Z")

</div>

In my development environment scheduled posts are published without any problem. Are there any plugins on your site that deal with scheduling posts?

Edit: I’ve tried this on a live site as well. It’s working, but I noticed a strange behaviour when the ‘Auto Publish’ setting is not enabled. For some reason when a scheduled post is saved the ‘Publish Post to Discourse’ meta-box value is not updated. This means that if a post is scheduled and then later updated, it will loose the ‘Publish post to Discourse’ value. I’ll sort this out right away.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [23 Enero, 2017 06:21 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/8 "2017-01-23T06:21:45Z")

</div>

I’ve sorted out the problem I was finding. The Discourse meta-boxes weren’t being updated with their saved values for scheduled posts. I’ll update the plugin early tomorrow. Hopefully this will solve the problem you are having with scheduled posts.

Thanks for reporting that!

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [23 Enero, 2017 16:32 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/9 "2017-01-23T16:32:21Z")

</div>

Thanks Simon, I appreciate the quick response!

Will this mean that I need to reinstall the plugin?  
(Unfortunately I can’t do that as it overwrites vital functionality every time.)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [23 Enero, 2017 18:10 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/10 "2017-01-23T18:10:44Z")

</div>

> [@HAWK](#):
>
> Will this mean that I need to reinstall the plugin?

Yes, you would need to update it to get these changes. If the problem you are having is the one I fixed, then you are probably seeing behaviour something like this:

- create a post
- select ‘Publish post to Discourse’
- schedule the post
- click ‘Publish’
- **the ‘Publish post to Discourse’ checkbox becomes unchecked**
- if you’ve set the publish category to one other than your default category, the category will revert to the default category

If, at this point, you don’t update the post again, it will be published to Discourse with the values that you initially set. If you do update the post before it’s scheduled to be published, you’ll need to recheck the ‘Publish post to Discourse’ checkbox and also make sure that the correct publish category is selected before you click ‘Update.’ Those values will again appear to revert to your default ones - the correct values are saved to the database, but they aren’t being used to populate the meta-boxes for scheduled posts, so they’re being overwritten when a scheduled post is updated.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [23 Enero, 2017 20:35 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/11 "2017-01-23T20:35:01Z")

</div>

Thanks for the clarification.

That isn’t quite the issue that I’m experiencing.

- create post
- select ‘Publish post to Discourse’ is already selected because it’s set to publish posts automatically
- schedule the post
- click ‘Publish’
- the checkbox remains ticked but the post doesn’t publish
- the behaviour around reverting to default does happen in the same way as yours does

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [23 Enero, 2017 21:41 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/12 "2017-01-23T21:41:59Z")

</div>

Which plugins are you using?

Is this self-hosted or are you using a WordPress host? If so, which?

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [24 Enero, 2017 02:15 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/13 "2017-01-24T02:15:55Z")

</div>

> [@steve\_pd](#):
>
> Which plugins are you using?

As in, all the plugins? Or for this particular issue (in which case the answer is the official WP-Discourse plugin)?

Discourse is hosted by Discourse, WP is with WPEngine

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [24 Enero, 2017 04:38 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/14 "2017-01-24T04:38:58Z")

</div>

> [@HAWK](#):
>
> WP is with WPEngine

Do you have WP Engine Alternate Cron enabled?

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [24 Enero, 2017 04:55 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/15 "2017-01-24T04:55:23Z")

</div>

I suspect not, as I just found this [below] in the support docs and I’ve never requested it. Are you suggesting I do?

> This is not enabled on your server by default, so you will have to request to have it enabled via Support.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [24 Enero, 2017 05:12 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/16 "2017-01-24T05:12:26Z")

</div>

No, I was just curious if anything is affecting how scheduled posts are published on you site.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [24 Enero, 2017 06:22 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/17 "2017-01-24T06:22:38Z")

</div>

A number of plugins alter aspects of automated publishing. The old Editorial plugin and Coschedule are good examples of this.

A list would be very helpful, yes.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [24 Enero, 2017 19:26 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/18 "2017-01-24T19:26:28Z")

</div>

You’ve prompted me to deactivate a few plugins that I don’t think we need – I was overdue for a clean up.

I’ll do that now and if nothing changes in terms of the scheduled post issue I’ll come back to you with a list.

I appreciate the help - thanks to you both.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [24 Enero, 2017 19:44 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/19 "2017-01-24T19:44:17Z")

</div>

Actually, while going through the above process I found both these, which may have an impact.

 ![](https://global.discourse-cdn.com/meta/original/3X/a/b/abb8cd7d2633a81e604ae404fadbcb6dcfff8628.png)

Thoughts on disabling these? I’m not sure that they’re necessary.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [25 Enero, 2017 10:31 UTC](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043/20 "2017-01-25T10:31:41Z")

</div>

Using those two plugins makes sense, but it’s also quite likely the cause of the problem. There’s a small change that can be made to the wp-discourse plugin that should make it compatible with the Missed Schedule plugin.

[Next page](https://meta.discourse.org/t/publish-to-discourse-and-scheduling/28043.md?page=2)
