WordPress.org

Forums

Events Manager
conditionsl placeholder else syntax (3 posts)

  1. raskull
    Member
    Posted 3 years ago #

    Is there an "else" syntax to use with the "if" syntax of conditional placeholders? Or is this the only/best way to accomplish "if all_day display "Foo" else display start time:

    {all_day}Foo{/all_day}{has_time}#g:#i #a{/has_time}

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 3 years ago #

    nothing at the moment, however you can create another conditional placeholder that would do this function.

    http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    No else functions. But the above would be the equivalent (we usually have the opposite conditional for these situations)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic