• 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

stacyvlasits

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 13, 2013 at 12:15 pm in reply to: Create New Page Template #25898
    stacyvlasits
    Member

    Mary, my guess is that you are putting a function declaration in your template file that has already been declared elsewhere (most likely in functions.php). You can fix this by removing the function declaration from the template file.

    My guess is that this is the culprit:
    function minimum_add_body_class( $classes )

    March 13, 2013 at 12:08 pm in reply to: Retrieve a set of posts in a specified date range #25895
    stacyvlasits
    Member

    Is it bad form to /bump a post in this forum? I'm worried I may have posted this too late in the day for it to be seen.

    March 13, 2013 at 12:06 pm in reply to: Using Simple Hooks to remove comment date #25894
    stacyvlasits
    Member

    Nat, as I noted, Brad's solution is almost certainly the right choice for you (and probably for most situations).

    Also, Brad, that function really looks like the way to go.

    I took the code from the genesis_comment_callback which is in genesis/lib/structure/comments.php

    March 13, 2013 at 8:53 am in reply to: Using Simple Hooks to remove comment date #25849
    stacyvlasits
    Member

    Brad's solution is probably the best way to solve your problem, but it is a teeny bit hacky in that it leaves html on your page that you really don't want.

    In case anyone is interested, here is a complicated (but cleaner) way to implement this.

    In your functions.php file  add_filter('genesis_comment_list_args', 'my_custom_comment_list_args'). Then define the function:

    function my_custom_comment_list_args($args){

    $args = array(
    'callback' = 'custom_comment_callback_no_date',

    )

    }

    Define a function like this in functions.php (it is a copy of the callback that genesis uses, only without the comment date/time):


    function custom_comment_callback_no_date( $comment, $args, $depth ) {

    $GLOBALS['comment'] = $comment; ?>

    <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">

    <?php do_action( 'genesis_before_comment' ); ?>

    <div class="comment-header">
    <div class="comment-author vcard">
    <?php echo get_avatar( $comment, $size = $args['avatar_size'] ); ?>
    <?php printf( __( '<cite class="fn">%s</cite> <span class="says">%s:</span>', 'genesis' ), get_comment_author_link(), apply_filters( 'comment_author_says_text', __( 'says', 'genesis' ) ) ); ?>
    </div><!-- end .comment-author -->

    </div>

    <div class="comment-content">
    <?php if ( $comment->comment_approved == '0' ) : ?>
    <p class="alert"><?php echo apply_filters( 'genesis_comment_awaiting_moderation', __( 'Your comment is awaiting moderation.', 'genesis' ) ); ?></p>
    <?php endif; ?>

    <?php comment_text(); ?>
    </div><!-- end .comment-content -->

    <div class="reply">
    <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    </div>

    <?php do_action( 'genesis_after_comment' );

    /** No ending </li> tag because of comment threading */

    }

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)

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