Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I have very little experience with WordPress and PHP, so I apologize in advance for syntax problems.

I'd like to know if it's possible to implement If/Else logic as short codes. Something like:

[if] Version: IF [elseif] Version: ELSEIF [else] Version: ELSE [/if]
// OR...
[if] Version: IF [if branch="elseif"] Version: ELSEIF [if branch="else"] Version: ELSE [/if]

If you want more background into why I would want to do such an idiotic thing, see the referenced post on SO.

Parse CFML tags in PHPParse CFML tags in PHP

I have very little experience with WordPress and PHP, so I apologize in advance for syntax problems.

I'd like to know if it's possible to implement If/Else logic as short codes. Something like:

[if] Version: IF [elseif] Version: ELSEIF [else] Version: ELSE [/if]
// OR...
[if] Version: IF [if branch="elseif"] Version: ELSEIF [if branch="else"] Version: ELSE [/if]

If you want more background into why I would want to do such an idiotic thing, see the referenced post on SO.

Parse CFML tags in PHP

I have very little experience with WordPress and PHP, so I apologize in advance for syntax problems.

I'd like to know if it's possible to implement If/Else logic as short codes. Something like:

[if] Version: IF [elseif] Version: ELSEIF [else] Version: ELSE [/if]
// OR...
[if] Version: IF [if branch="elseif"] Version: ELSEIF [if branch="else"] Version: ELSE [/if]

If you want more background into why I would want to do such an idiotic thing, see the referenced post on SO.

Parse CFML tags in PHP

Source Link
Snekse
  • 141
  • 1
  • 4

Implement If-ElseIf-Else-EndIf with short codes

I have very little experience with WordPress and PHP, so I apologize in advance for syntax problems.

I'd like to know if it's possible to implement If/Else logic as short codes. Something like:

[if] Version: IF [elseif] Version: ELSEIF [else] Version: ELSE [/if]
// OR...
[if] Version: IF [if branch="elseif"] Version: ELSEIF [if branch="else"] Version: ELSE [/if]

If you want more background into why I would want to do such an idiotic thing, see the referenced post on SO.

Parse CFML tags in PHP