WordPress.org

Support

Support » Themes and Templates » Posts in 2 columns

Posts in 2 columns

  • I found this code for putting posts into 2 columns. I tried tons of different codes but this was the best, because I wanted the posts that were next to each other to start and finish on the same line. (This is the site i’m working on – you can see what i mean there.)

    Here’s the content.php code: http://pastebin.com/k1UXz97X
    And here’s the CSS: http://pastebin.com/ryHAjDyr

    The problem is if you click “go back” nothing happens. Any ideas on how to fix that?? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • ANyone??

    [please don’t bump]

    Michael

    @alchymyth

    Forum Moderator

    please paste the full code of the template.
    does the template have a custom query?
    this might be missing the ‘paged’ paremeter.

    Here’s the full template code: http://pastebin.com/ppv5ht4C

    Michael

    @alchymyth

    Forum Moderator

    add the ‘paged’ parameter to this line:

    query_posts("cat=-5");

    change to:

    query_posts("cat=-5&paged=get_query_var('paged')");

    —-
    or alternatively change the line to:

    global $query_string; query_posts($query_string . "&cat=-5");

    thank you so much! The second one worked like a dream! The only problem is I don’t need to minus cat5 anymore. how would i update the code?

    Michael

    @alchymyth

    Forum Moderator

    I don’t need to minus cat5 anymore. how would i update the code?

    remove the whole line
    global $query_string; query_posts($query_string . "&cat=-5");

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Posts in 2 columns’ is closed to new replies.
Skip to toolbar