• 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

Featured Posts Widget – Adding Comment link to footer

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 › Featured Posts Widget – Adding Comment link to footer

This topic is: not resolved

Tagged: comment link, featured posts, widget

  • This topic has 5 replies, 2 voices, and was last updated 11 years ago by korywoodard.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • November 19, 2014 at 3:15 pm #132201
    korywoodard
    Member

    I know that I can have the comment link in the header meta, but I'm curious if I can move that comment link to be below the content in the featured posts widget?

    November 19, 2014 at 3:30 pm #132206
    nunotmp
    Member

    Sure you can. To do this you will have to modify two hooks.

    
    add_filter( 'genesis_post_info', 'wpz_post_info' );
    function wpz_post_info( $info ) {
    	$info = '[post_date] by [post_author_posts_link]  [post_edit]';
    	return $info;
    }
     
    add_filter( 'genesis_post_meta', 'wpz_post_meta' );
    function wpz_post_meta($meta) {
       $meta = '[post_categories] [post_tags] [post_comments]';
       return $meta;
    }
    

    Here is a gist.

    You first need to rebuild each filter and then you edit it the way you like. In the gist I moved [post_comments] to the post meta.


    Genesis Child Themes – Follow Me

    November 19, 2014 at 3:32 pm #132208
    korywoodard
    Member

    Trying that now!

    November 19, 2014 at 3:52 pm #132214
    korywoodard
    Member

    I guess I'm missing something here because the link is still showing up by the date with that widget.. I guess I need to force the footer meta to show with the widget, but I'm not sure how to do that.

    November 19, 2014 at 4:16 pm #132218
    nunotmp
    Member

    Is the comment count now showing at the bottom?


    Genesis Child Themes – Follow Me

    November 19, 2014 at 5:01 pm #132225
    korywoodard
    Member

    No. I would share a link, but I'm developing locally. Here's what I'm trying to do.

    So let me explain: I'm using the Featured Posts Widget to create a home page of popular posts. I've already got that taken care of as well as the share buttons. In this widget, though, it shows the post title and post date, but it doesn't show the footer meta (i.e. the comment link). I need it to do that, so I think I need to somehow force the footer meta links to show with the widget, but I don't know how to do that.

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