• 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

Pretty Pictures – Custom Homepage Loop

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 › Design Tips and Tricks › Pretty Pictures – Custom Homepage Loop

This topic is: not resolved

Tagged: homepage, loop, pretty pictures

  • This topic has 1 reply, 1 voice, and was last updated 13 years, 3 months ago by davidzumini.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 22, 2013 at 11:08 pm #13997
    davidzumini
    Member

    I'm using the "Pretty Pictures" theme for a new blog I'm designing and I'd like to create a custom loop for the homepage. Basically, I'm using the Genesis Responsive Slider to highlight posts categorized as "Featured". What I'd like to accomplish is to have the loop on the homepage show all posts except those categorized as featured, so as to avoid duplication. What file do I need to edit (or add) in order to make this happen?

    Thanks in advance!

     

    David

    January 23, 2013 at 12:36 am #14005
    davidzumini
    Member

    And... I answered my own question courtesy of Bill Erickson's helpful site! In case anyone else is wondering, add the following to your child theme's functions.php:


    add_action( 'pre_get_posts', 'be_exclude_category_from_blog' );
    function be_exclude_category_from_blog( $query ) {
    if( $query->is_main_query() && $query->is_home() ) {
    $query->set( 'cat', '-1' );
    }

    where '-1' is the category id you wish to exclude (be sure to keep the - in there in order to exclude it!).

    This seems to do the trick, but if anyone else has a way they think is better for some reason, I'm all ears. Thanks.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ 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