Created
December 18, 2016 08:10
-
-
Save al5dy/dfffead57fb5a9e4cbd0bc9d395f0c50 to your computer and use it in GitHub Desktop.
Автоматическое отображение миниатюры вверху страницы
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
add_action( 'genesis_entry_content', 'featured_post_image', 8 ); | |
function featured_post_image() { | |
if ( !is_singular( array( 'post', 'page' ) )) return; | |
the_post_thumbnail('featured'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment