WordPress.org

Ready to get started?Download WordPress

Forums

Posts in 2 columns (7 posts)

  1. coke
    Member
    Posted 2 years ago #

    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.

  2. coke
    Member
    Posted 2 years ago #

    ANyone??

    [please don't bump]

  3. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

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

  4. coke
    Member
    Posted 2 years ago #

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

  5. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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");
  6. coke
    Member
    Posted 2 years ago #

    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?

  7. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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");

Topic Closed

This topic has been closed to new replies.

About this Topic