WordPress.org

Support

Support » Themes and Templates » archive.php mod to show full post content only with posts tagged "the list"

archive.php mod to show full post content only with posts tagged "the list"

Viewing 2 replies - 1 through 2 (of 2 total)
  • danapalooza
    Member

    @danapalooza

    Per WordPress.org’s code rules, here is the code for my current archive.php file… http://cl.ly/F6Xi

    Here is the code for the modified archive.php file, which is not working… http://cl.ly/F5fI

    Any help would be appreciated.

    Michael
    Moderator

    @alchymyth

    a: you have the same code in the if and elseif section
    b: you are not allowing any output for any other than tag archives

    I would like the tag archive page for the tag the list (slug: the-list) to be the only archive page of any kind to display the full post content in the results.

    try to only add this line into the original archive.php where you want the content to show:
    (i.e. between these lines:

    </p>
    
    	</div><!-- end post -->

    )

    <?php /* Show full post content is posts are tagged with "the list" */ if (is_tag( 'the-list' )) { the_content(); } ?>

    total archive.php http://pastebin.com/K3w4uL9J

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘archive.php mod to show full post content only with posts tagged "the list"’ is closed to new replies.