Yet Another Related Posts Plugin (версия 4) начал выводить картинки в похожих постах. Но картинки были уменьшенного размера оригиналы. А это 1 мегабайт.
После использования их инструкции
Second, you can turn on a feature in YARPP to auto-generate appropriate size thumbnails on the fly, if they have not yet been created. Doing this type of processing on the fly does not scale well, so this feature is turned off by default. But if you run a smaller site with less traffic, it may work for you. Simply add
Сервер начал выдавать 502 Bad Gateway
Пришлось модифицировать YARPP
Заменил в строке 34 в template-thumbnails.php
$post_thumbnail_html = get_the_post_thumbnail( null, $dimensions['size'] );
на
$post_thumbnail_html = get_the_post_thumbnail( null, '1col-thumb' );
причем
в functions.php шаблона
add_theme_support('post-thumbnails');
add_image_size('1col-thumb', 120, 120, true);
Удачи вам!
После использования их инструкции
Second, you can turn on a feature in YARPP to auto-generate appropriate size thumbnails on the fly, if they have not yet been created. Doing this type of processing on the fly does not scale well, so this feature is turned off by default. But if you run a smaller site with less traffic, it may work for you. Simply add
define('YARPP_GENERATE_THUMBNAILS', true);
to your theme's functions.php
fileСервер начал выдавать 502 Bad Gateway
Пришлось модифицировать YARPP
Заменил в строке 34 в template-thumbnails.php
$post_thumbnail_html = get_the_post_thumbnail( null, $dimensions['size'] );
на
$post_thumbnail_html = get_the_post_thumbnail( null, '1col-thumb' );
причем
в functions.php шаблона
add_theme_support('post-thumbnails');
add_image_size('1col-thumb', 120, 120, true);
Удачи вам!
Stainless Steel Rod in Leg B - Titanium Rod in Leg B
ОтветитьУдалитьThis stainless steel rod allows you to easily hook titanium road bike your rod, blade, and hook from anywhere. hypoallergenic titanium earrings Use it to pick titanium fitness up the best ceramic vs titanium flat iron value, and the nano titanium ionic straightening iron most reliable