# Custom Excerpt Length not working for me

**URL:** <https://meta.discourse.org/t/custom-excerpt-length-not-working-for-me/284100>\
**Category:** WordPress\
**Created:** [November 1, 2023, 10:57am UTC](https://meta.discourse.org/t/custom-excerpt-length-not-working-for-me/284100 "2023-11-01T10:57:39Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![lnkbio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lnkbio/32/337531_2.png) [@lnkbio](https://meta.discourse.org/u/lnkbio)\
**Post date:** [November 3, 2023, 12:08am UTC](https://meta.discourse.org/t/custom-excerpt-length-not-working-for-me/284100/10 "2023-11-03T00:08:26Z")

</div>

Hi there,

This is the maintainer of the Lnk.Bio Wordpress plugin.

The function `lnkbio_api_sync` is only using the `unset` function on the local variable `$post` and it should not affect any code outside the function.

The `$post` variable is not passed via reference either, so it’s definitely only local to that function, otherwise it’d impact the post/excerpt everywhere in the WP code.

Any change we make to the `$post` is local to that function only, unless maybe Discourse code somehow uses global variables?

Do you have a sandbox Discourse installation for which you can share the API credentials so we can test the Discourse plugin locally and how it interacts with our code?

Thanks in advance

---

_[View the full topic](https://meta.discourse.org/t/custom-excerpt-length-not-working-for-me/284100)._
