• Resolved Gaetan69

    (@gaetan69)


    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

    https://wordpress.org/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you clarify in what situation you’d want to make the H conditional? I’m not too clear on that bit. Thanks.

    Thread Starter Gaetan69

    (@gaetan69)

    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?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditional shortcode in single event view make H into H 2’ is closed to new replies.