# WP Discourse Won't Publish Private Post

**URL:** <https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166>\
**Category:** WordPress\
**Created:** [01.Сентябрь.2018 19:43:37 UTC](https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166 "2018-09-01T19:43:37Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [09.Сентябрь.2018 17:18:22 UTC](https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166/11 "2018-09-09T17:18:22Z")

</div>

> [@pgross](#):
>
> I have added the filter and the function in my functions.php and turned off embed truncate but private posts are still not posting for me. Let me know what you need me to do to debug

Make sure you are on version 1.7.5 of the plugin and that ‘Publish to Discourse’ is selected in the post’s Discourse metabox. Double check for errors in the code you have added. Copying the first code example I provided into your theme’s `functions.php` file should work in most cases. It can be difficult to debug errors in a live environment. If you have a development version of your site, you can add some code to the `wpdc_custom_publish_private_post()` function to be sure that it’s being called. I usually create a `debug.log` file and write to that file to see what’s going on. See [this post](https://codex.wordpress.org/Debugging_in_WordPress) for details about how to set that up.

> [@pgross](#):
>
> On an unrelated note, does [WP Discourse](https://github.com/discourse/wp-discourse) pull new categories from discourse into the create/link dialogue to the right of the post editor?

If you have added categories to Discourse, you need to select ‘Force Category Update’ from the [WP Discourse](https://github.com/discourse/wp-discourse) Publishing options tab and then click ‘Save Options’ to pull in the new categories. You are the second person who has asked about this recently, so I’m going to change that behaviour in the plugin’s next update.

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-wont-publish-private-post/96166)._
