Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'genesis_before_entry_content','sri_add_date');
- function sri_add_date () {
- if ( is_home() || is_archive() || is_singular('post' ) ) { ?>
- <div class="my-date">
- <span class="my-date-day"><?php echo do_shortcode("[post_date format='j']"); ?></span>
- <span class="my-date-month"><?php echo do_shortcode("[post_date format='M']"); ?></span>
- </div>
- <?php }
- }
- //* Customize the post info function
- add_filter( 'genesis_post_info', 'sp_post_info_filter' );
- function sp_post_info_filter($post_info) {
- if ( is_home() || is_archive() ) {
- $post_info = '[post_comments] [post_edit]';
- }
- else {
- $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
- }
- return $post_info;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement