[Plugin: Global Content Blocks] Shortcode in block only works sometimes
-
I am trying to insert shortcode into a content block. The shortcode is setup by a plugin called Wishlist Member.
The shortcodes that do not use enclosing content work just fine in GCB, but any shortcodes that have enclosing content do not.
Shortcodes with enclosing content appear on the front-end.
This shortcode works just fine.
[wlm_loginform]This shortcodes does not work.
[nonmember]Display this message to non-members[/nonmember]The PHP code I have inserted in GCB is:
if (is_user_logged_in()) { $message = do_shortcode('[contentblock id=3]'); echo do_shortcode('[nonmember]' . $message . '[/nonmember]');; } else { echo do_shortcode('[contentblock id=2]'); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: Global Content Blocks] Shortcode in block only works sometimes’ is closed to new replies.