Notifications
Clear all

wpforo cross posting exclude shortcode

2 Posts
2 Users
1 Likes
155 Views
Posts: 5
Topic starter
(@rjwhuang)
Active Member
Joined: 2 years ago

Hi, I am using wpforo cross posting. And I notice the forum post include shortcode, is there a way to exclude shortcode?

Here is an example, I use a WP plugin called Blocks: [block id="49318" title="test"]

Thanks

1 Reply
Astghik
Posts: 5915
Admin
(@astgh)
Illustrious Member
Joined: 6 years ago

If you don't want to cross-post the shortcode you should use the wpforo_strip_shortcodes hook:

add_filter( 'wpforo_strip_shortcodes', function( $text ){ return strip_shortcodes( $text ); } );

You should put the code in the active theme functions.php file.

wpForo also has teh option that allows you to Enable WordPress Shortcodes in Post Content. You can control it using the according option on the "Posting & Editor Settings" admin page. 

 

Reply
Share:
Scroll to top