Created
August 24, 2019 14:15
-
-
Save topleague/87d243546d35aa20dfb5d1ea7f2e300b to your computer and use it in GitHub Desktop.
Relocate Post Info and Post Meta (Category Label and Date Stamp)
This file contains 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
// RELOCATING POST META (CATEGORY LABLE) FROM FOOTER TO ENTRY HEADER AREA | |
// Relocate Post Meta | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
// Filter Post Meta and Use it Condtionally | |
add_filter( 'genesis_post_meta', 'leaguewp_post_meta_filter' ); | |
function leaguewp_post_meta_filter($post_meta) { | |
if ( !is_page() ) { | |
$post_meta = '[post_categories before=""] [post_tags before=""]'; | |
return $post_meta; | |
}} | |
// RELOCATING POST INFO (DATE STAMP) FROM UNDER TO ABOVE ENTRY TITLE AREA | |
// Relocate post info | |
//* Customize Post Info | |
add_filter( 'genesis_post_info', 'leaguewp_post_info_filter' ); | |
function leaguewp_post_info_filter($post_info) { | |
$post_info = '[post_date]'; | |
return $post_info; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment