• I’m searching for a plugin or a method to display multiple views on a single archive page.

    For example one view that displays only the post titles, and one view that displays the full posts.

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • And who and where and when and how will make the decision WHICH one to be used if I visit that “archive page”.
    (Furthermore: is this about monthly archives or category archives?)

    Thread Starter slowcheetah

    (@slowcheetah)

    The user can switch the views by using a link on the catagory page.

    example (full view – title view)

    This is about the category archives

    i’m now working on a custom PHP solution wich is going to work fine, but my customer want plugins instead of custom functions.

    <?php
    	$getArchiveView	= $_GET["ArchiveView"];
    	$getCurrentCat	= $_GET["cat"];
    ?>
    
    <?php if ($getArchiveView == '1') { ?>
    <a href="?cat=<?php echo $getCurrentCat; ?>&ArchiveView=2">Swich to headers</a>
    <?php } else { ?>
    <a href="?cat=<?php echo $getCurrentCat; ?>&ArchiveView=1">Swich to full</a>
    <?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple views for archive page’ is closed to new replies.