Created
February 13, 2019 06:56
-
-
Save topleague/26a9a859ef7357e43a3ef038d4888ee1 to your computer and use it in GitHub Desktop.
Filter Post Meta and Post Info in Genesis
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
| // Relocate Post Meta | |
| remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
| add_action( 'genesis_entry_header', 'genesis_post_meta', 9 ); | |
| // 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; | |
| }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment