Forums

Publish and unpublish articles (2 posts)

  1. icerunner
    Member
    Posted 2 years ago #

    Hello. Does anyone know a plugin or something else that permit to unpublished an article from the homepage but this article is still visible AND available in the archives list? Thanks for your help.

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Change your archive template (use Template Hierarchy to determine the proper template) to include the post_status arguement with the query.

    As an example, just before the line:
    <?php if (have_posts()) : ?>

    put this:

    <?php query_posts($query_string . '&post_status=publish,pending'); ?>

    The query_posts() article explains the arguments in detail.

Topic Closed

This topic has been closed to new replies.

About this Topic