• 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

Help with Post Loop Hooks

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 › Help with Post Loop Hooks

This topic is: resolved
  • This topic has 2 replies, 2 voices, and was last updated 12 years, 2 months ago by fattony69.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 27, 2014 at 8:35 pm #97032
    fattony69
    Participant

    Hey,

    I'm working on a clients site (edmassassin.com) and I am trying to recreate this function for my client: http://totalfratmove.com/category/the-wall/

    I am using a category blog page.

    Nothing is working. Nothing is disappearing.

    add_action('genesis_before','remove_unwanted_actions');
    function remove_unwanted_actions() {
    	if ( is_category('2825')) { // <--- you could change, more about that below
    		remove_action('genesis_entry_header', 'genesis_do_post_title');
    		remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    		remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    		remove_action( 'genesis_post_content', 'genesis_do_post_content' );
    	}
    }

    Please help? Thanks.

    http://EDMAssassin.com
    March 27, 2014 at 9:34 pm #97051
    Brad Dalton
    Participant

    The function includes both HTML 5 and pre Genesis 2.0 loop hooks http://my.studiopress.com/docs/genesis-loop-hooks-comparison/


    Tutorials for StudioPress Themes.

    March 27, 2014 at 10:16 pm #97060
    fattony69
    Participant

    I updated it. No such luck of it working still.

    add_action('genesis_before','remove_unwanted_actions');
    function remove_unwanted_actions() {
    	if ( is_category('2825')) { // <--- you could change, more about that below
    		remove_action( 'genesis_entry_header', 'genesis_do_post_title');
    		remove_action( 'genesis_entry_header', 'genesis_post_info' );
    		remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    		remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    	}
    }
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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