Created
April 22, 2014 15:02
-
-
Save jillmugge/11182689 to your computer and use it in GitHub Desktop.
Themeblvd - Modify Meta Data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*-----------------------------------------------------------------------------------*/ | |
/* MODIFY META DATA | |
/* | |
/* This function will remove the default meta data from the theme. | |
/* You can specify your own text below in the my_custom_meta_information area. | |
/*-----------------------------------------------------------------------------------*/ | |
function my_custom_meta_information(){ | |
?> | |
<div class="entry-meta"> | |
<span class="author vcard"><?php _e( 'Posted by', TB_GETTEXT_DOMAIN ); ?> <a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php echo sprintf( esc_attr__( 'View all posts by %s', TB_GETTEXT_DOMAIN ), get_the_author() ); ?>" rel="author"><?php the_author(); ?></a></span> - | |
<time class="entry-date" datetime="<?php the_time('c'); ?>" pubdate><?php the_time( get_option('date_format') ); ?></time> - | |
<span class="category"><?php the_category(', '); ?></span> | |
</div><!-- .entry-meta --> | |
<?php | |
} | |
function my_custom_blog_meta(){ | |
remove_action( 'themeblvd_blog_meta', 'alyeska_blog_meta' ); | |
//If not using Alyeska, then use themeblvd_blog_meta_default for second variable | |
add_action( 'themeblvd_blog_meta', 'my_custom_meta_information' ); | |
} | |
add_action( 'after_setup_theme', 'my_custom_blog_meta'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment