Forums

Query Posts based on Variable Date Range (1 post)

  1. lolroflcopter
    Member
    Posted 3 months ago #

    Hello. I am attempting to query all posts within a week of the current post.

    [code moderated - please use the pastebin for any code over 10 lines]

    Everything is functioning as expected, except for the variable $end_date in the filter_where function. When I replace the variable with the correct date (the same date the variable is returning) the page functions as it should.

    Why would there not be an issue with the $post_date variable but one with the $end date?

    Thanks.

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 3 months ago by lolroflcopter
  • This topic is not resolved
  • WordPress version: 3.3.1