Last active
August 30, 2019 12:11
-
-
Save deeman/4331a9454c37c407dc4d410d1f2d8cb5 to your computer and use it in GitHub Desktop.
Genesis Framework: Customize the post meta function
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
| // Customize the post meta | |
| // Remove "Filled in"-text and "Tagged"-text | |
| add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
| function sp_post_meta_filter($post_meta) { | |
| if ( !is_page() ) { | |
| $post_meta = '[post_categories before=""] [post_tags before=""]'; | |
| return $post_meta; | |
| }} |
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
| // Customize the post meta | |
| // Change "Filled in"-text and "Tagged"-text | |
| add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
| function sp_post_meta_filter($post_meta) { | |
| if ( !is_page() ) { | |
| $post_meta = '[post_categories before="your text here"] [post_tags before="your text here"]'; | |
| return $post_meta; | |
| }} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
[post_categories=""] [post_tags_before="your text here"].[post_categories before="your text here"] [post_tags_before=""].