Use dynamic date in shortcode: do I need php?
-
Hi,
for a pod I created, I need to use a shortcode which sorts data by date, but dynamicaly: I always want to display the entries that have the current weeknumber or the number for next week. My pod has a week number field to be able to sort on that.
I have been reading through your tutorials and this forum, and understand I can’t use php in the shortcode. Is it possible to create a function that returns the pods shortcode, or am I over-complicating things that way and should I use a custom template to get this working?
Would like to hear your opinion on this.
Thanks in advance,
Bert.PS: I tried several event plugins to get this done, but they are either to extensive for my purpose or they have zero flexibility to alter the output.
- The topic ‘Use dynamic date in shortcode: do I need php?’ is closed to new replies.