# Filtering Pages and Posts for shortcode

**URL:** <https://meta.discourse.org/t/filtering-pages-and-posts-for-shortcode/89829>\
**Category:** WordPress\
**Created:** [June 14, 2018, 12:25am UTC](https://meta.discourse.org/t/filtering-pages-and-posts-for-shortcode/89829 "2018-06-14T00:25:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [June 14, 2018, 1:58am UTC](https://meta.discourse.org/t/filtering-pages-and-posts-for-shortcode/89829/6 "2018-06-14T01:58:15Z")

</div>

> [@oldManLemon](#):
>
> unfortunately it is behind a firewall as it is for an internal company.

This might be what’s causing the problem.

The easiest solution in the short term would be to create custom excerpts for the posts that you publish to Discourse and deselect the [WP Discourse](https://github.com/discourse/wp-discourse) Use Full Post Content option. If this isn’t possible with the Avada theme then some code will have to be added that hooks into the [WP Discourse](https://github.com/discourse/wp-discourse) `wp_discourse_excerpt` filter.

---

_[View the full topic](https://meta.discourse.org/t/filtering-pages-and-posts-for-shortcode/89829)._
