• merkio

    (@merkio)


    Is there anyway to display a list of posts per catagory when clicking on a catagory in the side bar. Similar to how MT does it.

    Instad of displaying every full post within that catagory it displays a list of posts sorted by date.

    I’ve trying playing around with the the_excerpt but it’s not quite what I need.

    here is a screen shot of what MT does.
    https://www.wmcrn.org.uk/posts.jpg

    Any help greatly appriciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • theiconoclast31

    (@theiconoclast31)

    So you’re getting the excerpt, but you want only the link?

    If so, remove the excerpt and instead, type the following:

    <?php the_time('F j, Y'); ?> :: <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>

    You may want to wrap them in a set of <li></li> tags and make it an unordered list.

    Thread Starter merkio

    (@merkio)

    Well, what I’d really like to do is have the main index page show the full posts but when a catagory is selected just be presented with a list of links to relevent posts.

    theiconoclast31

    (@theiconoclast31)

    Go to https://pastebin.ca/raw/258580

    Save the code as category.php and upload it to the same folder that has index.php.

    If it doesn’t work, delete the file. This works assuming that you’re using the default template. If you’re not using the default template, the only thing I changed was the loop, so it shouldn’t be hard to hack .

    Thread Starter merkio

    (@merkio)

    thanks, I’ll give it a whirl.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Catagory list’ is closed to new replies.