WordPress.org

Ready to get started?Download WordPress

Forums

Two Seperate Category Feeds on Home Page (6 posts)

  1. laxpixe
    Member
    Posted 4 years ago #

    Hi All,
    I'm building my first site in WordPress so please forgive me if this a simple fix or worse... un-fixable.

    I'm modifying the Mimbo template and I would like to feature two categories on the home page "Recent Articles" and "Publications" like this: http://www.evolvingdoordesign.com/blog/NYRB.png

    And here is the site: http://www.evolvingdoordesign.com/blog/

    Currently, I have a plugin installed that hides the "Publications" category from the home page so that those posts don't show under "Recent Articles". Obviously, I'll need to remove that plugin once (if) I figure this out.

    Is it possible to modify the loop to do this? Do I need two loops on the home page and is that even possible? I'm pretty sure I can figure out the CSS to make it pretty but I know zero PHP so I have no idea how to add a second loop.

    I would appreciate any suggestions you all might have. Thanks is advance!

  2. stvwlf
    Member
    Posted 4 years ago #

    Hi

    You already have those two categories on the home page so most likely the theme already has the two loops in place.

    What you most need is to apply different CSS styling to the Publications posts that are already on the site. They need to float left and be defined with a narrow width so they sit next to each other horizontally instead of extending the full site width and being vertically stacked.

    You may also need a modified the_excerpt function to include fewer words than on the full-width posts.

  3. laxpixe
    Member
    Posted 4 years ago #

    Thanks so much! This is very helpful.

  4. laxpixe
    Member
    Posted 4 years ago #

    Any idea why I can't get the columns to line up horizontally?

    #featured-cats ul {
    list-style:none;
    float:left;
    display:inline;
    padding: 3px 30px 22px 0px;
    width: 300px;
    }

  5. stvwlf
    Member
    Posted 4 years ago #

    What are you calling "can't line up horizontally"?

  6. stvwlf
    Member
    Posted 4 years ago #

    If you are referring to the sidebar protruding into the publications space, you might want to move the Publications div out of the contents area and into the top of the footer area.

Topic Closed

This topic has been closed to new replies.

About this Topic