Conditional shortcode in single event view make H into H 2
-
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:00So 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: https://www.gaetan.nl/salsaviva
- The topic ‘Conditional shortcode in single event view make H into H 2’ is closed to new replies.