WordPress.org

Ready to get started?Download WordPress

Forums

Giving it a Portal Look and Feel (4 posts)

  1. martin
    Member
    Posted 10 years ago #

    Pardon my poor background with PHP..
    Say we have 3 Categories in the Blog only. How do we rework the index home page to get content from Category 1 on the left, Category 2 in the middle and Category 3 on the right handside?
    In other words how do we change the looks from the classic Blog like to something "Portally", where selected content all appears on the homepage.
    Thank you in advance.

  2. skippy
    Member
    Posted 10 years ago #

    A quick look at index.php shows that much of the heavy lifting is done in "start_wp" (which is defined in wp-includes/functions.php).
    One simple (and probably ineffecient) solution would be to modify "the loop" (http://wiki.wordpress.org/index.php/TheLoop) to first create three arrays of posts, one each for the sections in your portal. For each post check the post's category, and stuff it into the appropriate array.
    Then, after "the loop" you can make your own loop that will cycle through each array and output the post data in the proper order, styling the output according to your 3-column CSS.

  3. mage111
    Member
    Posted 10 years ago #

    ive been working on something similar using php includes.
    http://wordpress.org/support/3/3732
    But it would seem it wont work in the more recent nightly builds, so if your trying to do what ive been, and your willing to downgrade. find 1.0 or 1.01 even and it should work as described on the wiki page:
    http://wiki.wordpress.org/index.php/PostsByCategory
    GL HTH, if you go about doing it another way, please let us know.

  4. davidchait
    Member
    Posted 10 years ago #

    Can you give a link or two or three to sample sites that are what you are looking for? Depending on what you really want, there's multiple approaches.
    Doing the posts loop multiple times is one approach.
    Doing links on the sidebars and full content in the middle is another.
    Doing RSS-feeds for the sidebars and full content in the middle is another.
    There's more, I'm sure... ;)
    -d
    http://www.chait.net

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.