• Resolved dasigna

    (@dasigna)


    hi there,

    just stumbled over this little precious and suddenly having strange ideas ??

    is there any possibility to create a shortcode that shows the following:

    “(week of year) from (date for monday in this week) to (date for friday in this week)”??

    so it may look like “CW36 from 31th august to 4th september” e.g. for last week.

    tried – but no luck so far.
    possible or stop trying?

    thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Denra.com

    (@denra)

    Hi @dasigna,

    That is a real challenge indeed, isn’t it? ??
    Nevertheless you can do it with our plugin. ??

    For previous week:

    CW[wpdts-week-of-year start="previous week"] from [wpdts-custom format="jS F" start="previous week monday"] to [wpdts-custom format="jS F" start="previous week friday"]

    For this week:

    CW[wpdts-week-of-year start="this week"] from [wpdts-custom format="jS F" start="this week monday"] to [wpdts-custom format="jS F" start="this week friday"]

    For next week:

    CW[wpdts-week-of-year start="next week"] from [wpdts-custom format="jS F" start="next week monday"] to [wpdts-custom format="jS F" start="next week friday"]

    Please let us know if that works for you.

    Thread Starter dasigna

    (@dasigna)

    TADA! ??

    tried immediately, and yes – works like a charm!
    some tweaks to dates and works as intended.

    many thanks for this quick reply and the direct solution. makes me happy.

    probably i might return with another challenge ??

    best regards.

    Plugin Author Denra.com

    (@denra)

    Great! Then we are closing this thread as resolved.

    Please consider leaving a postive review and/or donate if you like our plugin and find it helpful.

    Please open a new forum thread if you need help with another issue.

    Thank you for using WP Date and Time Shortcode!

    Sorry for bumping in here. How do we use the above example for months? Thank you!

    Plugin Author Denra.com

    (@denra)

    Hello @aspirenetwork,

    Can you please open a new support thread and type in your question there. This case is closed and the subject might be different. Thank you for your understanding.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘more complicated output?’ is closed to new replies.