creokiev
Forum Replies Created
-
Forum: Plugins
In reply to: [EWWW Image Optimizer] Webp images not showing on firefoxIE, Safari, Blackberry Browser does not support at all WebP format.
Use Edge version 18+ instead IE.
FF supports only in version 65 and newer.
Google Chrome version 23 and newer.
Opera version 12.1 and newer.Forum: Plugins
In reply to: [The Events Calendar] Title change and translation into SpanishSame problem with Russian lang “Мероприятия for Май 2017”
- This reply was modified 7 years, 6 months ago by creokiev.
Forum: Plugins
In reply to: [WP-PostRatings] How to display 5 highest posts in category?I’m trying to understand why we need to get an array if I only need to understand what category we are in. Through var_dump($catid); we get a lot of junk and nothing useful to solve this problem.
print_r(var_dump($catid)) (without loop) is return:
array(1) { [0]=> object(WP_Term)#5492 (16) { ["term_id"]=> int(56) ["name"]=> string(18) "Фотографы" ["slug"]=> string(5) "photo" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(56) ["taxonomy"]=> string(8) "category" ["description"]=> string(29) "База фотографов" ["parent"]=> int(0) ["count"]=> int(6) ["filter"]=> string(3) "raw" ["cat_ID"]=> int(56) ["category_count"]=> int(6) ["category_description"]=> string(29) "База фотографов" ["cat_name"]=> string(18) "Фотографы" ["category_nicename"]=> string(5) "photo" ["category_parent"]=> int(0) } }
- This reply was modified 7 years, 6 months ago by creokiev.
Forum: Plugins
In reply to: [WP-PostRatings] How to display 5 highest posts in category?in category 3 more than 50 posts width more than 500 votes…
I have the next PHP code in the sidebar.php<?php $catid = the_category_ID(''); if ($catid == 3) : ?> <?php if (function_exists('get_highest_rated_category')): ?> <div id="ratings-widget-2" class="widget widget_ratings-widget"><h3 class="widget-title">Рейтинг фотографов</h3> <ul> <?php get_highest_rated_category(3, 'post', 4, 5); ?> </ul> </div> <?php endif; ?>
output – Unknown (sidebar is empty)