Events Manager
[resolved] Conditional shortcode in single event view make H into H+2 (4 posts)

  1. Gaetan69
    Posted 2 years ago #

    Currently i have:
    {is_long}#D #d #M from #H:#i until #@H:#@i{/is_long}
    {not_long}#D #d #M from #H:#i until #@H:#@i{/not_long}

    As a place holder for the time and date in a single event page, which works fine btw.

    But: is it possible to render a different time in this view:
    Say i create a new event from august 7 18:00 to 00:00 that it would render:august 7 20:00 to 02:00

    So that the H in the statement is conditional and that i can make it: H+2 ??? i tried all kind of syntax to achieve this but to no succes yet, i must be overlooking something!

    Why? Well i am also using full calendar which renders a nice month view table with coloured bocks as events, but with evening events like partys that go past midnight it renders an event spanning two days (as a two day event) which i do not want, so this could be a work around.

    Any help is appreciated!

    you can see a preview of the site at: http://www.gaetan.nl/salsaviva


  2. caimin_nwl
    NetWebLogic Support
    Posted 2 years ago #

    Can you clarify in what situation you'd want to make the H conditional? I'm not too clear on that bit. Thanks.

  3. Gaetan69
    Posted 2 years ago #

    yes: I am also using wp full calendar.
    The site i am currently working on caters Salsa training and also parties. These are mostly evening/night events. when an event is from say: friday 20:00 until saturday 02:00 this event will render in the month view of wp full calendar as a two day event (a block that spans two cells of the table) I want to prevent that but i cant seem to hack that month-view table (with my lack of code skills) to make the event show up as a not-long event so i thought of a workaround: i create a event from 18:00 until 24:00, so it will render just in one cell of the month view and in the single event view it will still be announced the correct way (H+2) so from 20:00 untill 02:00
    Does this make any sense?

  4. angelo_nwl
    NetWebLogic Support
    Posted 2 years ago #

    am afraid that this is not available at the moment you might need to create custom conditional placeholder for this and this tutorial can help you get started - http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic