• 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

Altitude – Remove post-info in 1 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 › Design Tips and Tricks › Altitude – Remove post-info in 1 category

This topic is: not resolved

Tagged: .post-info, 1 category, altitude

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 3 months ago by babrees.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 20, 2017 at 5:24 am #201636
    babrees
    Participant

    As subject says, I'm trying to remove the post info for just one category. I have the following code, but can't get it to work.

    /*  Remove info (date) on posts in specific category */
    add_filter( 'genesis_post_info_output', 'remove_single_post_info' );
    function remove_single_post_info($post_info ) {
    
    		if( is_singular() && is_category( 'photo-gallery' ) ) {
    	remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
        }
    }
    http://fuerteventuranow.com/pajara/
    February 20, 2017 at 7:07 am #201637
    Victor Font
    Moderator

    Altitude pro has a custom post_info function and priority. Look around line 181 in functions.php and you should see:

    //* Relocate the post info
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    add_action( 'genesis_entry_header', 'my_post_info', 5 );

    Your code assumes the default function and priority. For Altitude Pro it should be:

    /*  Remove info (date) on posts in specific category */
    add_filter( 'genesis_post_info_output', 'remove_single_post_info' );
    function remove_single_post_info($post_info ) {
    
    		if( is_singular() && is_category( 'photo-gallery' ) ) {
    	remove_action( 'genesis_entry_header', 'my_post_info', 5 );
        }
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 20, 2017 at 11:13 am #201657
    babrees
    Participant

    Thanks Victor, unfortunately that didn't work either.

  • 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