• Howdy folks,

    I’m running a blog at http://www.athensfeed.com – one key ideal of my site is to feature drink specials in Athens, GA (UGA college town).

    I’m running the omarvelous version of the p2 theme, and I’ve got my query_posts set up to display posts only from the current day. However, many bars do not close until 3 or 4 am, so I want to have the current day’s posts stay in my query for 4 hours past the current day.

    I’ve tried everything googleable. It seems the solution may be to define a new php function (dateadd?) somewhere, but I’m not even sure how exactly to use it if I can even define the function correctly. Believe me, I’ve tried.

    So basically, I want my readers to be able to visit my site at 3am on a Tuesday and see all the posts from Monday plus the first 4 hours of Tuesday.

    Any thoughts?? Please help!!

The topic ‘How to return posts from current day 4 hours?’ is closed to new replies.