• 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

How to post author link and entry header info outside of loop

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 › How to post author link and entry header info outside of loop

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago by lsilver.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 11, 2016 at 5:06 pm #185418
    lsilver
    Member

    I'm trying to place a post's title, author link (preceded by the word 'By'), post date, and number of comments outside of loop in the Before Content area. This is to accommodate a full width image to display below all of this. So the final layout looks like:

    {Post Title}
    By {Author Link}
    {Date} {X Comments - Linked to comment area}
    Featured Image

    I'm able to get the post title and featured image to work just fine. But I'm having a hard time getting the author link, date, and comments to display in the Before Content area, likely because out of the box they need to be in the loop. Below is the code I'm using for the title and featured image.

    Thanks

    `<?php
    //* Remove the entry header markup (requires HTML5 theme support)
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );

    //* Remove the entry title (requires HTML5 theme support)
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );

    //* Add the entry header markup and entry title before the content on all pages except the front page
    add_action( 'genesis_before_content', 'jw_add_entry_header', 50 );
    function jw_add_entry_header()
    {
    genesis_entry_header_markup_open();
    genesis_do_post_title();
    genesis_entry_header_markup_close();
    }
    add_action( 'genesis_before_content', 'genesis_post_info', 12 );
    add_action('genesis_before_content', 'featured_post_image',8);
    function featured_post_image () {
    the_post_thumbnail('custom-thumb-5');
    }
    ?>

    May 11, 2016 at 8:06 pm #185428
    Brad Dalton
    Participant

    You don't need to reposition the entry header to add a full width featured image below the title.


    Tutorials for StudioPress Themes.

    May 11, 2016 at 10:01 pm #185434
    lsilver
    Member

    Care to elaborate?

    If I'm using a template with a content area and sidebar, the title, author link, date, etc. is in the content portion. As far as I can figure out, the only way to even display the title so that it is centered above both the content area and the sidebar (and not just hte content area) is to move it to genesis_before_content.

    May 11, 2016 at 10:26 pm #185435
    Brad Dalton
    Participant

    Like this http://wpsites.net/web-design/reposition-title-before-content-sidebar-wrap-like-the-nytimes-post-layout/

    Then hook in the featured image. You can use the code from the Workstation Pro child themes functions file and change the hook.


    Tutorials for StudioPress Themes.

    May 12, 2016 at 12:46 am #185441
    lsilver
    Member

    The issue was a conflict with Simple Edits

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

© 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