Tell us what you are trying to do?
I have tried hard to research this before bothering you but I cannot find the answer.
THE SET UP
I have two custom taxonomy sets. One being called this week and one next week, each with Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday as items added to them.
A staff Custom Post Type shows the taxonomies and they are ticked according to what days that member of staff works this week and next week.
I have created views to show separately a list of each staff working on a given day as in the following example for Monday this week:
Select posts with taxonomy:
this week days in one of these: Monday
A page then has a section showing seven rows of staff working on each day of the current week displayed via the view. There is another section which shows seven rows of staff working next week.
At the top of the two sections there is text showing ‘Week Beginning 18th February’ and ‘Week Beginning 25th February’. These dates have to be manually entered each week.
WHAT I'D LIKE TO DO
What I’d like to do is use php or something else, to find this Monday’s date and next Monday’s date which I think can be done using:
<?php
echo strtotime("this Monday"), "\n";
?>
So is it possible to do this within a shortcode somehow so that no-one has to enter the dates manually each week?
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site? lien caché and the section to look at is 'schedule'.
Many thanks,
Barry.