-
-
Save DavidPeralvarez/c0e1ce824ac57a3585ed15e04c6027a0 to your computer and use it in GitHub Desktop.
Haciendo uso de los shortcodes de Genesis
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
<?php | |
// Working with post shortcodes | |
add_filter( 'genesis_post_info', 'genesis_sample_post_info' ); | |
function genesis_sample_post_info( $postInfo ){ | |
return '[post_date format="d/m/Y" before="<span>" after="</span>" label="Publicado en: "] [post_modified_time format="g:i a" label="a las: "] [post_author_posts_link] [post_author_link] [post_comments zero="No hay comentarios" one="1 comentario" more="% comentarios"] [post_edit]'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment