I'm building a website for a school division in Canada, they help organize their days by assigning a school day to each day of the week. There are 5 school days, and so they do not always end up on the same day of the week, as on a day off the school day doesn't roll over.
I have used a custom post type and entered in custom fields to allow setting a date value, and a School Day Value by the staff of the school, however on the front page I have created a widget that I'd like to run a php string that will find an event with the date value the same as today's date, and then display that day's date or that custom field value in the sidebar for that day.
Can anyone think of how to do this? Thanks!
So from what I can see I think I'd need something like "
$query = new WP_Query( array( 'meta_key' => 'color', 'meta_value' => '**insert something that would show today's date in the correct format**' ) );
does it seem like I'm headed in the right direction? Sorry guys I know I'm way below the skill set needed for this but I'm not sure how else to learn.