The following snippet should only be used for sites using XHTML themes and Genesis versions earlier than 3.0.0. XHTML is no longer used in Genesis 3.0.0+.
Also, unless otherwise indicated, the code snippet should be placed into your theme’s functions.php file.
These code snippets can be utilized to modify the Post Info for XHTML themes. For HTML5 (Pro) themes, please use the Entry Header customization code snippets.
Here’s the code to personalize the post info on your website:
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Customize the post info function
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
if ( !is_page() ) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}}
To view a list of shortcodes and their corresponding attributes, please refer to the Shortcode Reference page.