Filtering Pages and Posts for shortcode


I am currently trying to use post full page/comment to the discussion area of my forum. I have chosen to do this because I we are using Avada theme which comes with pages builder.

[fusion_builder_container hundred_percent=“no” equal_height_columns=“no” menu_anchor="" hide_on_mobile=“small-visibility,medium-visibility,large-visibility” class="" id="" background_color=""

See above ^^^

I was wondering if there is a filter file somewhere that i can begin to enter this short code into the filter to remove it?

(Simon Cossar) #2

Shortcodes are a real problem if you want to publish the full post content. Take a look at the Dealing with WordPress shortcodes section of this topic for a few ways of dealing with them: WP Discourse Plugin Tips and Tricks.

The easiest approach would be to publish an excerpt of the post to Discourse and then allow users to see the full post by clicking on the Show Full Post button. When that is done, the shortcodes should be properly rendered in the expanded post.


Yeah I just noticed in my trails and tribulations that it seems to filter well in this case. The reason I was trying to avoid it was because if you click show full post it just changes to loading and never gathers to the full post. I was thinking that might have something to do with the shortcodes. Do you have any suggestions?

(Simon Cossar) #4

It would be good to sort out what the problem is with expanding the posts. If you can share a link to a post on your WordPress site, I’ll take a look at it. You can either post a link in this topic, or send it to me in a private message.


I unfortunately it is behind a firewall as it is for an internal company. I can route it to a different address to face it outwards temporaily. Would that bother installation if its address changed?

Unprocessable Entity s@ o@ i@ trigger@ _onError/<@ invokeWithOnError@ flush@ flush@ end@ run@ u@ e/i.error@ c@ fireWith@ r@ n/<@ [_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:29446:6](

XML Parsing Error: syntax error Location: Line Number 1, Column 1:

That is the error in the console when I click expand. Let me know if you still want me to get the site pointing out to the real (scary) internet?

(Simon Cossar) #6

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 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 wp_discourse_excerpt filter.