Skip to content

Instantly share code, notes, and snippets.

@DavidPeralvarez DavidPeralvarez/functions.php Secret
Created Jan 12, 2020

Embed
What would you like to do?
Haciendo uso de los shortcodes de Genesis
<?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
You can’t perform that action at this time.