• 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

Post title not showing up on blog category page.

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 › Post title not showing up on blog category page.

This topic is: not resolved

Tagged: category.php, entry-title

  • This topic has 14 replies, 3 voices, and was last updated 7 years ago by BillIrvine.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • May 10, 2018 at 9:53 am #219715
    BillIrvine
    Member

    I created a category.php to customize the layout (reintroduce the sidebar) of our blog category pages, however, the title of the blog post is not appearing in the loop output.

    Is there a specific "add_action" that needs to go on the template before Genesis runs?

    I've tried add_action( 'genesis_post_title ', 'genesis_do_post_title' );

    Thanks.

    May 10, 2018 at 10:01 am #219716
    Brad Dalton
    Participant

    Whats the full code for the category.php file?


    Tutorials for StudioPress Themes.

    May 10, 2018 at 10:27 am #219717
    BillIrvine
    Member
    <?php
    add_filter( 'genesis_site_layout', '__genesis_return_content_sidebar' );
    add_action( 'genesis_post_title ', 'genesis_do_post_title' );
    
    genesis();
    ?>
    May 10, 2018 at 11:43 am #219720
    BillIrvine
    Member

    Strange, I tried the code shown here: https://gist.github.com/wpsmith/5062834

    Same result, no post headline/title.

    Correction -- even stranger; upon inspecting, that code didn't execute at all.

    May 10, 2018 at 12:02 pm #219724
    Brad Dalton
    Participant

    Remove the closing php tag

    ?>

    Tutorials for StudioPress Themes.

    May 10, 2018 at 12:09 pm #219726
    BillIrvine
    Member

    Just noticed the actual template has no closing php tag... I think I added when I pasted it.

    May 10, 2018 at 12:12 pm #219727
    Brad Dalton
    Participant

    You should only need this :

    <?php
    
    add_filter( 'genesis_site_layout', '__genesis_return_content_sidebar' );
    
    
    genesis();
    

    Tutorials for StudioPress Themes.

    May 10, 2018 at 12:22 pm #219728
    BillIrvine
    Member

    That's what I started with (and have reverted to), but I'm not getting the post headline/title.

    This is what I get:
    post on category page

    And the `<h2>[TITLE]</h2>' is not in the rendered HTML.

    May 10, 2018 at 12:28 pm #219730
    Brad Dalton
    Participant

    Link to that page please.


    Tutorials for StudioPress Themes.

    May 10, 2018 at 1:40 pm #219731
    BillIrvine
    Member

    http://ivrtech.staging.wpengine.com/category/call-tracking
    (Not yet styled)

    May 10, 2018 at 1:51 pm #219732
    Brad Dalton
    Participant

    The entry title normally displays on archives unless its removed using PHP code or hidden using CSS.


    Tutorials for StudioPress Themes.

    May 10, 2018 at 1:58 pm #219733
    BillIrvine
    Member

    No PHP changes to the child theme, or CSS for this element.

    If you look at the source, the title is not in the HTML.

    May 10, 2018 at 5:07 pm #219735
    BillIrvine
    Member

    Any tips on where to look for the cause of this?

    May 10, 2018 at 6:09 pm #219737
    tianlong
    Participant

    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );

    Can you try this and see if it works?

    May 10, 2018 at 7:11 pm #219742
    BillIrvine
    Member

    This worked in the category.php file:
    add_action( 'genesis_entry_header', 'genesis_do_post_title' ,2);

    Still unclear as to why this was necessary.

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