# WP Discourse 2.4.8: possible bug with excerpt function

**URL:** https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793
**Category:** WordPress
**Tags:** wordpress
**Created:** [March 2, 2023, 9:00am UTC](https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793 "2023-03-02T09:00:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![OrkoGrayskull](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orkograyskull/32/275883_2.png) [@OrkoGrayskull](https://meta.discourse.org/u/OrkoGrayskull)
#### Post date: [March 2, 2023, 9:00am UTC](https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793/1 "2023-03-02T09:00:35Z")

</div>

Hi there,

I’m using [WP Discourse](https://github.com/discourse/wp-discourse) (2.4.8). Under the “Publihsing” tab, I **unchecked** `Publish the full post to Discourse, rather than an excerpt`. Publishing posts works and an abbreviated representation is displayed in Discourse. However, when I update a post and select the `Update Discourse topic` function, the post does not update or submit the changes.

However, if I **enable** the `Publish the full post to Discourse, rather than an excerpt`. function, then updates also work, or the `Update Discourse topic` function works correctly.

Maybe a bug?

---

<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: [March 2, 2023, 9:04am UTC](https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793/2 "2023-03-02T09:04:28Z")

</div>

Thanks for the report! I’ll take a look at this soon.

---

<div class="post-metadata">

### Author: ![OrkoGrayskull](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orkograyskull/32/275883_2.png) [@OrkoGrayskull](https://meta.discourse.org/u/OrkoGrayskull)
#### Post date: [March 2, 2023, 9:22am UTC](https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793/3 "2023-03-02T09:22:02Z")

</div>

Thanks.

For your information: Only the excerpt length/part of the texts gets updated.

---

<div class="post-metadata">

### Author: ![OrkoGrayskull](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orkograyskull/32/275883_2.png) [@OrkoGrayskull](https://meta.discourse.org/u/OrkoGrayskull)
#### Post date: [March 9, 2023, 11:23am UTC](https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793/4 "2023-03-09T11:23:48Z")

</div>

@angus Any updates on this?

---

<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: [March 9, 2023, 3:40pm UTC](https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793/5 "2023-03-09T15:40:04Z")

</div>

I’ve tried to reproduce this a few times, but haven’t been able to. Here’s an example of such as test (i.e. it’s working as expected)

https://www.loom.com/embed/f8f03b8875e14265b845596b8f188ee8

Note that “Use Full Post Content” is disabled.

Are you sure you’re saving the Wordpress post first?

---

<div class="post-metadata">

### Author: ![OrkoGrayskull](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orkograyskull/32/275883_2.png) [@OrkoGrayskull](https://meta.discourse.org/u/OrkoGrayskull)
#### Post date: [March 10, 2023, 11:54am UTC](https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793/6 "2023-03-10T11:54:57Z")

</div>

I’m only posting from WordPress to Discourse. So yes, I am sure that I am saving the WordPress post first. Maybe it’s not happing with short texts. Could you try it with longer texts like 1500 words and more?

---

<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: [March 15, 2023, 12:53pm UTC](https://meta.discourse.org/t/wp-discourse-2-4-8-possible-bug-with-excerpt-function/256793/7 "2023-03-15T12:53:04Z")

</div>

I’ve tried this a few more times with texts of various length and it works every time. For example

https://www.loom.com/embed/a603247fe34a4d2fbaef20e5f986cbec

Could you please double check the following:

1. Look at the logs for [WP Discourse](https://github.com/discourse/wp-discourse). Turn on verbose publishing logs if you don’t have them on already.
2. Look at the logs for your Wordpress.
3. Try disabling other plugins and themes.
4. If you’re using any custom functions that interact with [WP Discourse](https://github.com/discourse/wp-discourse) please post them here.
