How to write and Echo Shortcode Content
-
does anyone know how to write a shortcode to display a users content between tags, then echo that content later in a conditional?
say someone enters this in the editor
[sc1]this is shortcode 1 content[/sc1]
[sc2]this is shortcode 2 content[/sc2]i then would need to write a conditional into my loop
if ($function) {
echo sc1;
}else{
echo sc2;
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to write and Echo Shortcode Content’ is closed to new replies.