AI Assistant
Notifications
Clear all

wpforo cross posting exclude shortcode

2 Posts
2 Users
1 Reactions
1,304 Views
Posts: 25
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@rjwhuang)
Eminent Member
Joined: 4 years ago
[#12430]

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: 6645
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@astgh)
Illustrious Member
Joined: 8 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