• 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

Remove loop from all category pages

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 › Remove loop from all category pages

This topic is: not resolved

Tagged: category pages, loop

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 11 months ago by himansh.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 9, 2015 at 3:11 am #173279
    himansh
    Member

    Hi,

    I need to remove loop from all category pages, i dont want to make separate template.

    the code i currently using is :

    add_action( 'genesis_setup', 'line_theme_setup', 15 );

    function line_theme_setup() {

    //// Other Code ////

    if(!is_category()){

    remove_action( 'genesis_loop', 'genesis_do_loop' );

    add_action( 'genesis_loop', 'genesis_loop_custom');

    }

    }

    But its not working.

    I highly appreciate you help,

    Thanks in advance

    Himanshu

    http://local
    December 9, 2015 at 4:39 am #173285
    Brad Dalton
    Participant

    Use:

    is_category
    

    You are using the

    !

    NOT operator.


    Tutorials for StudioPress Themes.

    December 9, 2015 at 7:49 am #173317
    himansh
    Member

    Oh, that's a typo here, i used "if(!is_category())" actually.

    December 9, 2015 at 12:21 pm #173351
    himansh
    Member

    Oh, that’s a typo here, i used “if(is_category())” actually.

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