• 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

Can't select a specific category in Genesis Blog page template

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 › Can't select a specific category in Genesis Blog page template

This topic is: not resolved

Tagged: blog page, categories, Sixteen Nine

  • This topic has 7 replies, 2 voices, and was last updated 11 years ago by vangelisbel.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • November 8, 2014 at 5:24 am #130885
    vangelisbel
    Member

    Hello

    I'd like to have only a specific category displaying in my blog page template.
    I went to the Genesis menu ---> Theme Settings and I selected the All Posts category I created as seen in the photo below.

    However, the Uncategorized category (which I don't want to appear) still appears on page six of my blog (http://www.vangelisphotography.com/blog/page/6/)

    Any ideas why this is happening? I'm using Sixteen Nine theme.

    Thanks
    Vangelis

    http://www.vangelisphotography.com/blog/
    November 8, 2014 at 5:28 am #130886
    Genesis Developer
    Member

    remove those posts from Uncategorized category if you already assigned them.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    November 8, 2014 at 5:36 am #130887
    vangelisbel
    Member

    Thank you genwrock for your reply!

    The "Uncategorized" category (or I can name it any other name), is the one I don't want to appear on my blog.
    I want the posts under the "Uncategorized" category to be hidden and show up only if someone has the specific URL to them.

    All the other posts I want to appear on my blog, are under the All Posts category.

    When I select the All Posts category to show up, this doesn't work. Instead all categories show up including the Uncategorized one. Hope I didn't confuse you with my description!

    November 8, 2014 at 5:39 am #130889
    Genesis Developer
    Member

    Ok. Then put the “Uncategorized” category ID in the "Exclude the following Category IDs:" textbox


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    November 8, 2014 at 5:43 am #130892
    vangelisbel
    Member

    Tried that as well. The ID is 119. I put that in "Exclude the following Category IDs:" textbox and nothing happens...
    Maybe it's a plugin or something? Have you heard of something like this before?

    November 8, 2014 at 6:13 am #130897
    Genesis Developer
    Member

    I think that ID is wrong. It will be 1


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    November 8, 2014 at 1:48 pm #130941
    vangelisbel
    Member

    It's not 1. I know how to find Categories and Tags IDs. Anyway I'll try creating a custom page template of a category.

    November 8, 2014 at 2:41 pm #130944
    vangelisbel
    Member

    UPDATE

    I used the following code (found at http://www.wpstuffs.com/exclude-posts-category-front-page-genesis/) in functions.php and it worked!

    /** Exclude certain category from posts */
    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', '-156' );
    }
    }

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

© 2025 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