WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. nearlythere
    Member
    Posted 8 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:
    http://www.figby.com/wp-content/futureposts.php.txt

    and more info about category templates:
    http://codex.wordpress.org/Category_Templates

Topic Closed

This topic has been closed to new replies.

About this Topic