To Edit Author and Date Post Information, simply add the following to your functions.php file. This code uses Genesis specific shortcodes.
[php]// Modify Post Info
add_filter('genesis_post_info', 'my_post_info_filter');
function my_post_info_filter($post_info) {
if (!is_page()) {
$post_info = '[ post_date] by [ post_author_posts_link] at [ post_time] [ post_comments] [ post_edit]'; //remove spaces after initial [
//$post_info = 'Custom text'; //edit this to whatever you'd like.
}
return $post_info;
}[/php]
Available shortcodes are (without the space in front):
- [ post_date]: Date of publication; e.g., [ post_date format="F j, Y" label="Dated: "] =
- [ post_time]: Time of publication; e.g., [ post_time format="g:i a"] =
- [ post_author]: Displays author's name; e.g., [ post_author before="<em>" after="</em>"] =
- [ post_author_link]: Produces the link to Author URL; e.g., [ post_author_link before="" after=""] =
- [ post_author_posts_link]: Produces the link to Author's Archive; e.g., [ post_author_link before="" after=""] =
- [ post_comments]: Produces the Comment Link; e.g., [ post_comments zero="No Comments" one="1 Comment" more="% Comments"] =
- [ post_tags]: Displays the tag link list; e.g., [ post_tags sep=", " before="Tags: "] =
- [ post_categories]: Displays the category link list; e.g., [ post_categories sep=", " before="Posted Under: "] = Posted Under: Genesis, Tutorials
- [ post_edit]: Displays the Edit link for logged in users; e.g., [ post_edit before="(" after=")"] =
For more shortcodes, see StudioPress's Shortcodes.