• Resolved mwmalta

    (@mwmalta)


    Hi,

    I’m trying to create a simple wordpress design. It is laid out with a single post (most recent post) followed by archives or “recent posts”. I’m going to want every post listed with the following information “title” and “categories”. That’s it.

    The only reason I will have every post listed on 1 page is because it’s for a portfolio and there won’t be that many posts.

    I need to get this done fast, so any helpful suggestions would be great!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Possibility:

    <?php
    $posts=get_posts('showposts=100000');
    if ($posts) {
    foreach($posts as $post) {
    setup_postdata($post);
    ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    <?php
    the_category();
    }
    }
    ?>

    Thread Starter mwmalta

    (@mwmalta)

    Thanks the reply! That works out perfectly. Just 1 more question.. how can I style the category links to display inline?

    Something like this…

    Post Title >>>>>>>>>>>>>>>>>>>>>>>>Category 1, Category 2, Cat 3

    Making the categories right aligned to the post title. Imagine the carrots aren’t there. Thanks again for the quick response!

    See CSS

    Thread Starter mwmalta

    (@mwmalta)

    been messing with CSS, and I understand how CSS works. I’m having trouble seperating the title from the Archives when I put a ‘,’ the_category draw. That makes everything on “one line” but it’s not separated and it’s not CSS.

    Any hints as how to make this work? My site I’m working on currently is markmalta.com/portfolio. Excuse my markup – I haven’t cleaned it yet, nor have I got half the design implemented. Again, I’m trying to get the title / categories to align left / right of eachother on a single line, followed by the next line seperated by a bottom border.

    Thanks for the help!

    Thread Starter mwmalta

    (@mwmalta)

    Hi again. Sorry for the bump. I did get the styling figured out for safari / firefox but it’s not right (at all) in IE.

    Can someone take a quick look and tell me if they think there is a better sololution?

    markmalta.com/portfolio

    the section below “ALL WORK” View in firefox or safari for correct formatting.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get Archives with Category’ is closed to new replies.