• Resolved justinnorman

    (@justinnorman)


    I’m setting up a site and taking user submissions, and I’ve run into a problem: in the location form, the state field can be filled out a number of ways. For example, the state of Iowa can be written “Iowa”, “IA”, or “ia”. If I then try to display all events taking place in Iowa on a page, I cannot seem to write code that will display events from all three spellings without making three separate lists. For example, the code below (with comma-spaced variations) does not work. Any ideas? I’m just trying to make this as foolproof as possible so new submissions don’t always have to be double-checked for state formatting.

    <?php if (class_exists(‘EM_Events’)) { echo EM_Events::output( array(‘limit’=>10,’orderby’=>’name’, ‘state’=>’IA, Iowa, iowa’) );
    } ?>

    • This topic was modified 9 years, 10 months ago by justinnorman.
Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    at the moment it will only accept what you have defined under Events > Locations > State columns

Viewing 1 replies (of 1 total)

The topic ‘Display Events from Multiple States’ is closed to new replies.