Support » Fixing WordPress » Three columns layout?

  • Hello. I want to have a three column layout. The left column for the menu; the right column for the category “news” and the center column for the rest of the categories except “news”.
    What is the right code for the center and right columns?
    Obviously I’m not a programmer (although I understand some things about the “art”)
    Regards and thank you in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,
    You probably should play around with the .CSS, as that’s the only way to get it positioned the way you want. 🙂

    I do not have trouble with the CSS since I made already the layout. What I need is the code for the blog itself (I mean, selecting which categories will be positioned in the center and which at the right). Thanks anyway.

    Hi Blei,
    It sounds like you want to have two ‘views’ of the blog on one page. That isn’t easy to do (if it is at all possible) because currently WordPress uses the include of blog.header.php to set up all the data for a single ‘view’ of the blog (including restricting to one category or excluding one category), and then the ‘loop’ code in you template makes use of that data.
    To do what you need to do, you would have to do that process (include blog.header.php and ‘loop’ code) a second time. I’m not sure quite what would happen if you tried that.

    Hi MikeLittle,
    That’s exactly what I want to do. Thanks for putting the concept in the correct technical terms. What a pitty if that can’t be achieved. So, at least for me, I would like to see this “two view of the blog in the same page” in the feature requests list 🙂

    I have done this before with the old b2, but it isn’t pretty.
    What you could do is use inline frames. If you code the main page for example, with the center column containing all the other categorys by excluding the news category in the blog call at the top.
    Then, in the rightr column add an iframe (it can be blended in so that you can not tell it is is a frame) and use it to call news.php which only includes the news cat.
    It is messy, but if you work on this principle and test it a lot, it can work.

    If you understand what ragey was saying about using an iframe, then you might want to look at this other thread, which will explain how to get your news category into the iframe and leave the other categories in the main page.

    ragey, you are a genius!!!!! 😉
    I don’t know why I didn’t think about that before. It’s like a dirty trick, but it sure will work! Thanks again.
    And dougal, thank you for that link. I’ll certainly need the info.
    Hey, men, WordPress community rocks!!! 😀

    From now on, I’ll say, and Dougal can clean up the mess 🙂

    Hey, I have another suggestion: You can change the b2rss.php file or create a new one based on this, to show only the ‘news’ posts, and call the the file where you want to show this category.
    Can anyone suggest an easy to setup rss parser script to read de rss file, please? 😉

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Three columns layout?’ is closed to new replies.