What I can accomplish so far
a) through the use of a custom field the author can add a date (05/22/2010) or in a second custom field enter a day (Saturday)
b) with a query_posts I can display only posts that have either a date or a day assigned to them.
What I am trying to accomplish is displaying in the same list, posts that have either todays date or todays day assigned to them.
The code I have so far
Code: Select all
<?php $todaysDate = date('m/d/Y'); ?>
<?php query_posts('meta_key=date_value&meta_value=' . $todaysDate . '&orderby=meta_value&order=ASC&orderby=title'); ?>Code: Select all
<?php $today = date('l'); ?>
<?php query_posts('meta_key=dayofweek_value&meta_value=' . $today . '&orderby=meta_value&order=ASC&orderby=title'); ?>So I'm looking to merge the results of both date formats and display them as one. Can I get it to show all results for $todaysDate and $today ?
Thannks