Last active
May 29, 2018 09:17
-
-
Save DavidPeralvarez/a124117dfca4114e8686416c4f5ea045 to your computer and use it in GitHub Desktop.
Mostrar Post Formats dentro del Loop de WordPress
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 | |
if ( have_posts() ): | |
while ( have_posts() ): the_post(); | |
//Mostramos el "slug" del formato de post | |
echo get_post_format(); | |
endwhile; | |
endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment