• hello folks,

    The story is that I have a dedicated category for Events with many scheduled posts in it as Upcoming events.

    Now, in the home page I need to show both scheduled (upcoming events) posts and published ones (from every other category).

    so I tried modifing the query this way:

    query_posts('post_status=future,publish');

    But the problem is that there are a lot of scheduled posts (15+) and the obvious result is a page with only scheduled posts (I’m showing 6 posts per page).

    So my goal is to set the query to limit only scheduled posts to, let’s say, 3 or show the scheduled posts within 15 days from today.

    I wonder if is that possible…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Would the example “Return posts from the last 30 days” on this page help?

    Thread Starter dskbrk

    (@dskbrk)

    yeah it would be great but I think I cannot limit the query to one only category (only Events within the next 15 days then all other published post in standard descending order).

    In this scenario two separate query & loop is the only way to go..or I’m wrong?

    abyway, thanks for the suggestion.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit future posts by number or date in custom query’ is closed to new replies.