• I am using Bootstrap in a WordPress build and I would like to have three columns, each showing 1 event and details to be offset for future events:

    After browsing 60+ pages of this support forum, I can not find anything on offsetting events, although, some Google results state that there is an offset command built into the code.

    That being said, I’m looking for the shortcode parameter to use for offsetting events by next upcoming event — after current upcoming event — in the future.

    My example:
    `<div class=”col-md-4″>
    <?php echo do_shortcode( ‘[eme_events limit=1 order=DESC]’); ?>
    </div>
    <div class=”col-md-4″>
    <?php echo do_shortcode( ‘[eme_events limit=1 order=DESC]’); ?>
    </div>
    <div class=”col-md-4″>
    <?php echo do_shortcode( ‘[eme_events limit=1 order=DESC]’); ?>
    </div>`

    Is there an offset command that can be used in the shortcode or via the API offered by the plugin?

    Thanks

    • This topic was modified 7 years, 12 months ago by Ben Kaminski.
    • This topic was modified 7 years, 12 months ago by Ben Kaminski.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Franky

    (@liedekef)

    Why don’t you configure the eme_events shortcode (using templates for events header/footer and list entry) to return your 3 columns? That way you don’t need to bother with offset.

    Thread Starter Ben Kaminski

    (@tzhben)

    Well, quite frankly (pun intended) a offset is pretty standard in WP and PHP in general. I mean “Offset=”-1″ — not a lot of code there.

    I looked at your documentation on templates, I’ll revisit when I get back to work on the project.

    Surprised even your API does not offer the offset feature. I’ll keep you informed of the results of the templates. Personally, I believe an offset would be much easier. That’s just like, my opinion man…

    Plugin Author Franky

    (@liedekef)

    An offset is already used (for paging), and can be overridden on the url, but that wouldn’t help you (you want to have 3 different offsets).
    EME can create your layout in 2 minutes:
    – create a empty header and footer template
    – create a “list” template with as content one of the div’s mentioned above
    Then use limit=3 in [eme_events] and you’re done …

    F.

    Thread Starter Ben Kaminski

    (@tzhben)

    Franky,
    Mark as resolved. Using the templates took longer than 2 minutes, but in the end it worked. Not quite sure what the blank header and footer are doing but using your method above did — in fact — work as I was looking for.

    Thanks for answering my questions and providing me with a path forward.

    End Result:
    End Result EME separation

    Thanks again Franky.

    • This reply was modified 7 years, 12 months ago by Ben Kaminski.
    • This reply was modified 7 years, 12 months ago by Ben Kaminski. Reason: image not working
    Plugin Author Franky

    (@liedekef)

    If you don’t tell explicitly that you want an empty header/footer, the default will be taken (from your general EME settings), and those are most of the times ol or li-tags (and that would threw away your layout).

    • This reply was modified 7 years, 12 months ago by Franky.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Event Offset?’ is closed to new replies.