Shortcodes order
-
Hi Noah,
Thanks for the quick response!
I would like to have three separate notifications per day:
Before opening: Carwash Uden opens at …
During opening: Carwash Uden is open until …
After opening: Carwash Uden opens again tommorw from …
(and when it is closed tomorrow: Carwash Uden is closed tomorrow)Thanks in advance!
Sincerely,
Erwin Teering
Hi Erwin,
Thanks for getting in touch.
Here is your question:
A small question, I am using the shortcode below. Is it possible to indicate that when it is (for example) 8 o’clock and the location opens at 10 o’clock he indicates that it will open at 10 o’clock, without indicating that it will be open again from 10 o’clock tomorrow?
Now he shows both. I would like to see one before opening, and the other after opening on that day
Is this due to the order of shortcodes or is there not (yet) a code for this? If not, can it be made?
You posted me the following shortcode and content:
[open_text] %if_open% Carwash Uden is open today until %today_end% %end% %if_closed% %if_open_today% Carwash Uden opens today at %today_start% %end% %if_open_tomorrow% Carwash Uden is open again tomorrow from %tomorrow_start% %end% %if_closed_tomorrow% Carwash Uden is closed tomorrow %end% %end% [/open_text]
Note: I presume you are removing the line breaks so the sentence works? I am keeping them here for clarity. I have also indented the logic to show it more clearly.
If you only want to show that it is open today at a certain time, you only need to cut out the references to tomorrow. This would look something like:
[open_text] %if_open% Carwash Uden is open today until %today_end% %end% %if_closed% %if_open_today% Carwash Uden opens today at %today_start% %end% [/open_text]
The ordering of the replacement logic is not important if the two bits of logic are mutually exclusive. Please ensure that you open and then close each logic statement properly.
Is that what you meant by your question?
Please can you post something on the forum if you feel it is relevant to other people – it is useful to have some answers public.
Best regards,
Noah Hearle
The page I need help with: [log in to see the link]
- The topic ‘Shortcodes order’ is closed to new replies.