Try using the shortcodes [php]
and [/php]
instead. That’s what they are for!
I’m using a extremely long list of IF and ELSEIF codes I don’t think S2Member’s short codes support a long list of IF and ELSEIF’s.
do you know if it’s possible to do an unlimited IF and ELSEIF’s with the short code? I think you can only go 10 levels deep with the short code. right?
Either you’re confused or I am. You started this thread by talking about PHP tags, and I told you to use [php]
shortcodes instead, because that is actually the recommended method.
Now you are talking about s2Member shortcodes. What have they got to do with PHP shortcodes?
Sorry I wasn’t clear about all the details. The same people that created S2Member, created EZphp, generally to help S2Member users, and I am incorporating php codes in my S2Member site.
I ran some experiments and I understand, what you were saying:
just execute regular php codes, but instead of <?php and ?> use [php] and [/php]. ok that works, and I can use it in the visual editor.
Thanks
Does not work with visual composer buttons. : /
@ofmarconi: That’s to be expected. Visual Composer stores everything within its own space and does not use the regular WordPress methods, so it’s incompatible with many WP plugins. You need to change to a better page builder or, better still, stop using them altogether.
See https://pippinsplugins.com/wordpress-page-builder-plugins-critical-review/