get category template to show future posts only (1 post)

  1. nearlythere
    Posted 10 years ago #

    can anyone think of a way to take in a function from the futureposts plugin, and make it work n specific category pages?

    this is the part of the futureposts function that makes future-dated posts appear... how can i put this in the loop to work on a category-specific template? (eg. category-2.php, etc)

    $content = preg_replace("/AND post_date_gmt <= '.+'/", "AND 1", $content);

    here is the link to the plugin page:

    and more info about category templates:

Topic Closed

This topic has been closed to new replies.

About this Topic