• Resolved kriskris1

    (@kriskris1)


    Hi,

    I want to display 5 days ahead, but without saturday and sunday.
    Is there any way to exclude weekend?

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

    (@denra)

    Hello,

    I don’t know if I understand you correctly, but probably the following attributes will do something like this:

    [wp-dt-weekday-name days="+5" next="Mon,Tue,Wed,Thu,Fri"]

    We’ve tried it with days="+1" and days="+2" and it works (since it is Friday today).

    Please let us know if it works for you.

    Thread Starter kriskris1

    (@kriskris1)

    Hi,

    is not working properly for me. I want to show the date. Тoday is 03/04/2020 after 5 working days it will be 10/04/2020, but it shows me Wednesday.

    Thank you.

    Plugin Author Denra.com

    (@denra)

    Hi,

    Now I understand that you want to display 5 working days ahead (not 5 days). In this case the shortcode above will really not work and unfortunately we do not have the exact functionality you are searching for. There is a compromise solution that will work correctly except for the Sundays since Sunday result will show not the next day (Monday) but the Monday one week later. It might be achieved adding 6 days:

    [wp-dt-custom format="d/m/Y" days="+6" next="Mon,Tue,Wed,Thu,Fri"]

    We will discuss if, when and how this specific functionality might be added (probably in the coming soon paid Pro edition of the plugin which will contain many additional non-basic features).

    Plugin Author Denra.com

    (@denra)

    Please let us know if we can close this thread. If we do not hear from you in the next days we will close the case as solved.

    You may follow our plugin updates and be informed if/when the feature required by you will be available.

    Thank you for trying and using WP Date and Time Shortcode.

    Plugin Author Denra.com

    (@denra)

    Hello,

    I am marking this thread as solved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude weekends’ is closed to new replies.