• I want to have a page that will display a list of all posts by date like this:

    PostDate1……………PostTitle1…………….PostCategories1
    PostDate2……………PostTitle2…………….PostCategories2
    PostDate3……………PostTitle3…………….PostCategories3
    PostDate4……………PostTitle4…………….PostCategories4
    ……etc…..

    I would like each post title clickable and obviously linked to the actual post.

    I’ve scoured the web for plugins and even php scripts, but haven’t found anything I’ve really wanted. Any suggestions are appreciated, but it might just come down to how to write some php that will pull that info and put it into an organized table on a page.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • apart from ‘get_header’, get_sidebar’ and ‘get_footer’, and making it into a page template, for instance, this should do the job (not a copy/paste instruction):

    <?php
    // if neccessary insert query_posts here to get all posts and sorted as you like //
    if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div class="postdate"><?php the_time(); ?></div><div class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></div><div class="postcats"><?php the_category(', ') ?></div>
    
    <?php endwhile; endif; ?>

    basic styles for it:

    .postdate { float:left; width:100px; clear:left; }
    .posttitle { float:left; width:200px; }
    .postcats { float:left; width:500px; }

    without the dots inline 🙁

    It should just need a combination of template development and some CSS.

    CSS Tutorials
    Learning CSS

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Need some code/plugin(s) for this feature!’ is closed to new replies.