• Resolved flush

    (@flush)


    I’m trying to have a page where posts would display inline, in lines of 3, then drop and start a new line. (its to display images, all of the same size)
    Has anybody seen something like that? I’d like to talk to someone who’s actually done it.
    Thanks

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter flush

    (@flush)

    Yes, all I have found were horizontal layouts, not once have I found a blog where the horizontal line dropped to start a new line.

    I am going to start working on a modified loop category template, that displays 3 thumbnail images in a row, and has 12 items on a page. It will use 4 (or less, depending on the number of posts in a category) get_posts(“category=10&numberposts=3″) calls with each next call including “&offset=x” where x is the number of posts that have already been output.

    @samaritan
    If I am totaly wrong, please provide examples of a standard loop allowing formatting of a specific number of posts (ie. inserting a seperator between posts 5 and 6, or hilighting every 8th post).

    You mean like the countless examples of Loops that insert adsense code after every x posts? For instance: https://www.tamba2.org.uk/wordpress/adsense/

    Adding a counter and if statement is all that’s going on there. You don’t need to fetch x articles at a time.

    Thank you! That is what I was looking for. In that case, I could find out if postnum is devisable by 3 and add a CSS clear element. Right?

    Or, I suppose that if the postnum == 3 it could be reset to 1, rather than continually incrementing.

    I set $postnum = 1; $columns = 3; after header, but before have_posts().

    After the post itself, I have:

    if ($postnum == $columns) {
    echo ‘
    < css clear element using hr >
    ‘;
    $postnum = 1;

    } else $postnum++;

    (enclosed in php script tags, of course)

    I have a gallery_item class in my stylesheet:

    #content .gallery_item {
    float:left;
    width:185px;
    }

    At some point I may add a gallery specific id and move the gallery_item class

    Thread Starter flush

    (@flush)

    Finally solved this issue that turned out to be simple thanks to the guys at the CSSCreator forums.
    I’ll just link to the thread: https://www.csscreator.com/node/18253

    Hmmm. And you (as well as the folks on that forum) think that the wp forum should have done the css work for you? This is a wp forum NOT a css ditto. It’s nice that you got your problem worked out, but the snide remarks are specious, superfluous, and snarky.

    Thread Starter flush

    (@flush)

    !!? God knows what you’re talking about vkaryl, but it’s clear you’re really snarky for that matter…
    I guess I just got confused by the forum title: Themes and Templates — XHTML and CSS

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘anyone ever seen a blog where posts displayed inline 3 in a row?’ is closed to new replies.