• Resolved gpalowitch

    (@gpalowitch)


    Hi Eliot,

    I have a couple questions about the if shortcode.

    First, How many nested if are possible?

    Second, I tried to use [if field=”title” value=”A” start=”true”] to filter out all non-A titles. For some reason it is not working. Is it a syntax error on my part or something else? Additionally, can only the first character be evaluated or can it search multiple characters, such as the first two?

    Thanks,
    Garrett

    https://ww.wp.xz.cn/plugins/custom-content-shortcode/

Viewing 1 replies (of 1 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    1) For now, there’s [-if] and [–if].

    2) Good point – the field parameter was only checking custom fields. In the latest update, I enabled predefined fields for the [if] shortcode, so the code you used should now work as expected.

    3) You can check multiple characters with start. I also added a way to write it simpler:

    [if field="title" start="The"]
Viewing 1 replies (of 1 total)

The topic ‘Questions about if shortcode’ is closed to new replies.