• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Does anyone know how to do multiple home page loops?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Does anyone know how to do multiple home page loops?

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 13 years, 1 month ago by wpspeak.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 23, 2013 at 3:38 am #14016
    James
    Participant

    hey all

    Does anyone have a code snippet for multiple home page loops?

    I need to have one post from a featured category

    and then the rest of the page have posts from another category (without duplicating posts from featured if it is in both categories)

    as well as a post thumbnail before the post title

     

    has anyone seen anything like this around or close or something i could work with

     

    would super highly appreciate it  (client project)

     

    January 25, 2013 at 7:39 pm #14925
    wpspeak
    Member

    The way I'll do it:

    1. Create a widget area before the blog loop. Use the featured post widget where you can choose "Featured" category. If you need more control of the position of the image (like image before post title), install the Genesis Featured Post amplified plugin. The native Featured Post Widget can only align the image to none, left and right only if I'm not mistaken.

    2. Use blog page template and exclude the "Featured" category. It should be similar to this http://www.briangardner.com/blog-page-single-category/ BUT you need to put the negative sign in front on the category ID.

    3. To swap the position of post thumbnail of post title, there's two method:

    METHOD 1: You need to unhook the original one, and hook them back. Here's a sample code:

    // Move image above post title
    remove_action( 'genesis_post_content', 'genesis_do_post_image' );
    add_action( 'genesis_before_post_title', 'genesis_do_post_image' );

    METHOD 2: Using the same method as Streamline theme. Here's the code:

    /** Add post image above post title */
    add_action( 'genesis_before_post', 'streamline_post_image' );
    function streamline_post_image() {

    if ( is_page() ) return;

    if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    printf( '', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }

    What you need to achieve is actually have almost the same structure with Streamline theme.

    Hope this helps


    WP Speak | Help the Awesome #Genesiswp Community

    January 25, 2013 at 11:51 pm #14959
    James
    Participant

    Thankyou so much for your detailed reply, that is an excellent idea!

    Genius 🙂

     

     

     

    January 26, 2013 at 12:22 am #14962
    wpspeak
    Member

    No problem. I'm pretty sure other folks will have different ways of doing this. But the one I mentioned above might be the simplest one (at least for me)


    WP Speak | Help the Awesome #Genesiswp Community

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble