• 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

Balance theme Grid Exclude Category

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 › Balance theme Grid Exclude Category

This topic is: not resolved

Tagged: Balance, grid lo0p

  • This topic has 19 replies, 2 voices, and was last updated 10 years, 5 months ago by Brad Dalton.
Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • June 6, 2013 at 12:04 pm #44376
    etchattic
    Member

    Hi there

     

    I'm trying to exclude 4 category's from the balance theme homepage grid.

    Any snippets available?

     

    Craig

    June 6, 2013 at 12:08 pm #44378
    Brad Dalton
    Participant

    Try these:

    How to Exclude the Posts of a Specific Category from the Homepage?

    http://www.studiopress.community/topic/balance-theme-excluding-category-on-home-page/#post-32650


    Tutorials for StudioPress Themes.

    June 6, 2013 at 12:31 pm #44386
    etchattic
    Member

    Simply Exclude didn't work.

    I've tried stopping the category by adding the // exclude posts from this category// ( the code not the words in brackets )  in the homepage loop.

    Never had this problem before.

    Thanks

    Craig

    June 6, 2013 at 12:35 pm #44389
    Brad Dalton
    Participant

    Try this:

    Code not displaying? grab it on Github.

    You can add a comma separated list of category I.d's.


    Tutorials for StudioPress Themes.

    June 6, 2013 at 1:02 pm #44396
    etchattic
    Member

    Hey Bill

    I see that.  I'm trying to use the same grid that the balance theme uses.

    This is my home.php code  you'll see the exclude category I tried to use.  https://gist.github.com/thewebattic/5723987

    I did try add the function you showed above but nothing happened again.

    Thanks for the help so far

     

    Craig

     

    June 7, 2013 at 2:34 am #44480
    etchattic
    Member

    Hey still no joy here.

     

    Also noticed that when I page through from the home page pagination it go's back to the home page ??

    Any more advice would be appreciated

    June 7, 2013 at 3:06 am #44483
    Brad Dalton
    Participant

    This code has been tested on the Balance child theme and works.

    Please remove this code from your home.php file

    'category__not_in' => -13, // exclude posts from this category
    

    Then paste this code at the end of your child themes functions.php file.

    Code not displaying? Grab it from Github.

    Please replace the 4 category i.d's in the code with the i.d's for the categories you want to exclude posts from displaying in.

    This code removes all posts assigned to 4 categories from displaying on your home page if its set to display your latest posts. The code also excludes posts from those 4 categories from displaying in paginated pages linked to the home page.

    Example: page 1,2,3 etc.


    Tutorials for StudioPress Themes.

    June 7, 2013 at 7:11 am #44513
    etchattic
    Member

    Hey Bill

    I added that code still no luck  even tried installing the original functions.php file and home.php and the grid still shows the the category I'm trying to exclude category-13 and reloads the home page for the pagination links.

    With that in mind do you think it's possible I have settings in the Dashboard area that are conflicting with the code??

    Craig

    Link to the homepage http://sdesign.evokemedia.ca/wp2/

    June 7, 2013 at 8:12 am #44526
    Brad Dalton
    Participant

    Please send me your login details for cPanel and WordPress and i'll take a look and fix it for you.

    I have tested the code on your theme locally and i know it works but would like to help you resolve this quickly.


    Tutorials for StudioPress Themes.

    June 7, 2013 at 8:22 am #44532
    etchattic
    Member
    This reply has been marked as private.
    June 7, 2013 at 12:52 pm #44603
    etchattic
    Member

    Hey Brad did you get my details.

     

    I'll never call you bill again lol !

    Craig

    June 7, 2013 at 1:20 pm #44619
    Brad Dalton
    Participant

    Hey Craig

    Please send to [email protected]

    Cannot for some reason read the private messages from anyone.

    No worries about the name.


    Tutorials for StudioPress Themes.

    June 10, 2013 at 9:29 am #45040
    etchattic
    Member

    Hey brad I forwarded on my details yesterday by email.

    Let me know if you got them

    Thanks

    Craig

    June 10, 2013 at 9:31 am #45043
    Brad Dalton
    Participant

    Never got them. Not sure why.

    Try [email protected]


    Tutorials for StudioPress Themes.

    June 10, 2013 at 10:04 am #45049
    etchattic
    Member

    I just resent the details now.

     

    PS I also just received a failure notice for the first mail I sent

     

    his is an automatically generated Delivery Status Notification

    THIS IS A WARNING MESSAGE ONLY.

    YOU DO NOT NEED TO RESEND YOUR MESSAGE.

    Delivery to the following recipient has been delayed:

    [email protected]

    Message will be retried for 2 more day(s)

     

    Catch you later

    Craig

    June 10, 2013 at 10:26 am #45060
    Brad Dalton
    Participant

    Because mine is .net not .com

    Which categories do you want to exclude?


    Tutorials for StudioPress Themes.

    June 10, 2013 at 12:47 pm #45093
    etchattic
    Member

    Hey Brad I tried it on a top level domain no joy.

    Do you know what version of wordpress the test site you got it to work on had ???    I'm just trying to eliminate wether the issue is with the grid and the latest wordpress update.

    Thanks

    Craig

    June 10, 2013 at 12:53 pm #45097
    Brad Dalton
    Participant

    3.6-beta3-24432


    Tutorials for StudioPress Themes.

    June 11, 2013 at 11:21 am #45306
    etchattic
    Member

    Ok  For anyone having this same issue.

     

    I found the bug.  I have featured post widgets in the sidebar that seem to overide the Grid settings on the homepage.  No where else but on the homepage.  So if my featured posts widget selects a category  the grid automaitcally takes on that cat even if I exclude it. from the grid

    Happy unbugging

     

    Craig

    June 11, 2013 at 11:35 am #45309
    Brad Dalton
    Participant

    Thanks for sharing this Craig.


    Tutorials for StudioPress Themes.

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

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