Tagged Questions
0
votes
0answers
13 views
Am i right to assume that i can't conditionally load a javascript file (or not) based on the used shortcodes and values? [duplicate]
Am i right to assume that i can't conditionally load a javascript file (or not) based on the used shortcodes and values?
like in human language
if shortcode exists in the current post and value is ...
0
votes
1answer
33 views
Parse a shortcode differently based on on what it's nested in
Suppose we have two different sets of nested shortcodes, like this:
Apple version
[wrapper snack="apple"] Today I had a [flavor] snack... [/wrapper]
Desired output: My snack was quite HEALTHY ...
0
votes
1answer
92 views
If else with shortcodes
I only want one of these shortcodes to display if the custom field value is true. I'm not understanding the logic to do this. So basically, if there is a twitch video and a own3d video I only want the ...
1
vote
1answer
202 views
Conditional Shortcode image display
Got a problem with a shortcode.. i probebly dont know where & how to set the condition so it will display the right image according to the topic / category of the toturial..
Help Plz :)
function ...
1
vote
1answer
478 views
Can shortcodes contain conditional statements? Even without them my shortcode renders blank page
The following code is supposed to allow for a shortcode that includes many attributes, but not all of the attributes may always be present in which case I do not want the containing element to show ...