# Debugging issue with custom post type publishing as blank

**URL:** https://meta.discourse.org/t/debugging-issue-with-custom-post-type-publishing-as-blank/157750
**Category:** WordPress
**Created:** [July 14, 2020, 9:06pm UTC](https://meta.discourse.org/t/debugging-issue-with-custom-post-type-publishing-as-blank/157750 "2020-07-14T21:06:00Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Kayla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kayla/32/128523_2.png) [@Kayla](https://meta.discourse.org/u/Kayla)
#### Post date: [July 15, 2020, 6:04am UTC](https://meta.discourse.org/t/debugging-issue-with-custom-post-type-publishing-as-blank/157750/5 "2020-07-15T06:04:04Z")

</div>

I’ve finally narrowed it down: the issue seems to come from the automatic publishing option (also a new factor, overlooked). If I uncheck this, publish the post on Wordpress, _then_ publish to Discourse, the custom fields come over to Discourse and display as they should. Or if I allow the auto-publishing to happen, the fields will show up in Discourse after hitting Update Discourse Topic in Wordpress. So it seems that when the post is automatically published, it publishes before the data in the custom fields is properly saved in Wordpress.

---

_[View the full topic](https://meta.discourse.org/t/debugging-issue-with-custom-post-type-publishing-as-blank/157750)._
