Forums

Publish and unpublish articles (2 posts)

  1. icerunner
    Member
    Posted 2 weeks 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
    moderator
    Posted 2 weeks 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.

Reply

You must log in to post.

About this Topic