# WP keeps losing its link to Discourse Post

**URL:** https://meta.discourse.org/t/wp-keeps-losing-its-link-to-discourse-post/208273
**Category:** WordPress
**Created:** [November 4, 2021, 4:52pm UTC](https://meta.discourse.org/t/wp-keeps-losing-its-link-to-discourse-post/208273 "2021-11-04T16:52:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nick\_Chomey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_chomey/32/215378_2.png) [@Nick\_Chomey](https://meta.discourse.org/u/Nick_Chomey)
#### Post date: [November 4, 2021, 4:52pm UTC](https://meta.discourse.org/t/wp-keeps-losing-its-link-to-discourse-post/208273/1 "2021-11-04T16:52:17Z")

</div>

I have many posts that already exist that I’d like to Publish to Discourse. When I do so, it works, but when I reload the post it no longer recognizes the link. If I re-link it, the same thing happens. It also seems to be somewhat sporadic - sometimes it happens for both posts and custom post types, sometimes not. Disabling all other plugins doesn’t help.

The logs are completely normal looking.

```plaintext
[2021-11-04 16:51:14] publish.INFO: create_post.post_success {"wp_title":"Installing CyberPanel","wp_author_id":"1","wp_post_id":2119,"discourse_post_id":""} 
[2021-11-04 16:51:14] publish.INFO: create_post.body_valid {"wp_title":"Installing CyberPanel","wp_author_id":"1","wp_post_id":2119,"discourse_post_id":""}

```

Here is a screen recording of it.

---

<div class="post-metadata">

### Author: ![Nick\_Chomey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_chomey/32/215378_2.png) [@Nick\_Chomey](https://meta.discourse.org/u/Nick_Chomey)
#### Post date: [November 4, 2021, 5:04pm UTC](https://meta.discourse.org/t/wp-keeps-losing-its-link-to-discourse-post/208273/2 "2021-11-04T17:04:33Z")

</div>

The data is in wp\_postmeta. So the plugin seems to be having some communication problem…

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

---

<div class="post-metadata">

### Author: ![Nick\_Chomey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_chomey/32/215378_2.png) [@Nick\_Chomey](https://meta.discourse.org/u/Nick_Chomey)
#### Post date: [November 4, 2021, 5:38pm UTC](https://meta.discourse.org/t/wp-keeps-losing-its-link-to-discourse-post/208273/3 "2021-11-04T17:38:55Z")

</div>

All I can think of is that the posts that I’m having trouble with seem to be ones that I’ve linked and de-linked a couple times. I have cleared traces from wp\_postmeta, and even re-installed/connected [WP Discourse](https://github.com/discourse/wp-discourse), but are there other tables or settings that store references?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [November 5, 2021, 2:22am UTC](https://meta.discourse.org/t/wp-keeps-losing-its-link-to-discourse-post/208273/4 "2021-11-05T02:22:30Z")

</div>

Could you attempt the same thing again, but when you refresh the page keep your browser console open and look for exceptions. The data is being created normally however it’s not showing up in your UI which suggests a client-side exception.

---

<div class="post-metadata">

### Author: ![Nick\_Chomey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_chomey/32/215378_2.png) [@Nick\_Chomey](https://meta.discourse.org/u/Nick_Chomey)
#### Post date: [November 5, 2021, 2:57am UTC](https://meta.discourse.org/t/wp-keeps-losing-its-link-to-discourse-post/208273/5 "2021-11-05T02:57:56Z")

</div>

Very strange… I just went back and now they are showing as linked. Nothing changed in the browser. Maybe some sort of caching/cookies thing…

Thanks anyway! If it re-occurs, I’ll monitor the console and report the details.
