Last active
August 29, 2015 14:16
-
-
Save iiiBird/f6ab6c11af6383c594d4 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
<?php | |
//Задать миниатюру в functions.php | |
if ( function_exists( 'add_theme_support' ) ) | |
add_theme_support( 'post-thumbnails' ); | |
add_image_size( 'lol-thumb', 700, 300, true ); //Жесткий обрезчик миниатюр | |
<?php the_post_thumbnail('lol-thumb');?> //Вывод |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment