• 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 display author name underneath 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 › General Discussion › How to display author name underneath pages

This topic is: resolved

Tagged: author name on pages, Google Authorship

  • This topic has 7 replies, 3 voices, and was last updated 12 years ago by Genesis Developer.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • April 1, 2014 at 3:37 pm #97973
    silla
    Member

    Hi,

    I'm using the Lifestyle Pro theme with a static page as the homepage, and unfortunately pages don't display author names like posts do. I added the following code provided by genwrock here:

    add_action( 'genesis_entry_header', 'genesis_page_info', 18 );
    add_filter( 'genesis_page_info', 'do_shortcode', 20 );
    
    function genesis_page_info() {
    
    global $post;
    
    if (is_page()):
    
    	$post_info = apply_filters( 'genesis_page_info', '[post_date] ' . __( 'by', 'genesis' ) . ' [post_author_posts_link]' );
    
    	genesis_markup( array(
    		'html5' => sprintf( '<p class="entry-meta">%s</p>', $post_info ),
    		'xhtml' => sprintf( '<div class="post-info">%s</div>', $post_info ),
    	) );
    
       endif;
    }

    It worked, but it added the date and author name at the top of the page right underneath the title, and I would like it to be underneath the article. I would also prefer not to display the date at all.

    Could someone please give me the code needed to accomplish this?

    Thanks!

    April 1, 2014 at 7:07 pm #97991
    Brad Dalton
    Participant

    You can filter the post info to remove the author link and then filter the post meta to add the author link http://wpsites.net/web-design/3-ways-to-move-post-meta-below-post-info/


    Tutorials for StudioPress Themes.

    April 3, 2014 at 10:58 am #98309
    silla
    Member

    Hi Brad,

    Thanks for your response. Maybe I'm doing something wrong (I don't know php, so I need exact instructions on what to copy where), but I can't get it to work. The solution on the page you linked to only seems to make the author name show up (below the title) on posts, not pages. And I already have them showing up below the posts thanks to the Genesis Simple Edits plugin, but unfortunately the plugin only seems to affect posts and not pages.

    April 3, 2014 at 12:59 pm #98331
    Genesis Developer
    Member
    add_action( 'genesis_entry_footer', 'genesis_page_info', 18 );
    add_filter( 'genesis_page_info', 'do_shortcode', 20 );
    
    function genesis_page_info() {
    
    global $post;
    
    if (is_page()):
    
    	$post_info = apply_filters( 'genesis_page_info',  ' [post_author_posts_link]' );
    
    	genesis_markup( array(
    		'html5' => sprintf( '<p class="entry-meta">%s</p>', $post_info ),
    		'xhtml' => sprintf( '<div class="post-info">%s</div>', $post_info ),
    	) );
    
       endif;
    }

    Try this once


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    April 3, 2014 at 1:50 pm #98336
    silla
    Member

    Thanks genwrock, it worked perfectly! 🙂 One more question - how can I add "By" in front of the author name? I tried copying that part from the first code you gave, but I did it wrong because it just gives me an error.

    April 3, 2014 at 8:16 pm #98388
    Genesis Developer
    Member

    Try this

    $post_info = apply_filters( 'genesis_page_info', __( 'by', 'genesis' ) . ' [post_author_posts_link]' );


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    April 4, 2014 at 4:47 am #98421
    silla
    Member

    It worked, thank you so much for your help! 🙂

    April 4, 2014 at 4:48 am #98422
    Genesis Developer
    Member

    You are welcome.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to display author name underneath pages’ is closed to new 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