• 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

slider posts hidden in rss feed but still showing in google reader?

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 › slider posts hidden in rss feed but still showing in google reader?

This topic is: not resolved

Tagged: genesis responsive slider plugin

  • This topic has 2 replies, 2 voices, and was last updated 13 years ago by davidh55.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 4, 2013 at 10:14 am #9499
    davidh55
    Member

    I am using the genesis framework with legacy theme and "genesis responsive slider" . The posts I have set up for the slide show are only featured images specifically for this slider. I have set them up so that they are not listed on my blog page, and they are not showing up in my blog feed.

    However in google reader, it is showing all the slides? Is there a way to block this from happening? a setting to remove the "slider" category completely from my feed?

    January 4, 2013 at 6:40 pm #9626
    Chris Cree
    Participant

    To remove a category from your RSS feed, you can add something along these lines to your functions.php file.

    add_filter( 'pre_get_posts', 'sc_remove_feed_cat' );
    function sc_remove_feed_cat( $query ) {
        if ( $query->is_feed ) {
            $query->set( 'cat' , '-10' );
        }
    	return $query;
    }

    Change out the "10" in '-10' with the category ID for your featured images posts. But be sure to keep the minus sign in there so that it removes the category.

    January 5, 2013 at 7:58 am #9717
    davidh55
    Member

    thanks for the suggestion here, unfortunately I couldn't get that code to work with the latest version of WordPress. It appears to work, but when I change category IDs nothing happens to the rss feed.

    I've found some other code, slightly amended that seems to work, so implemented on my site.

     /** Remove category from feed and blog page */
     function dtwd_exclude_category($query) {
     if ( $query->is_feed || $query->is_home ) {
     $query->set('category__not_in', '13' );
     }
     return $query;
     }
     add_filter('pre_get_posts', 'dtwd_exclude_category');
    
    

    Do you think this code is ok? It seems to work

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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