Pierre Lebedel
Forum Replies Created
-
Forum: Plugins
In reply to: [Kodex Posts likes] How to change the image/icon of like and dislikeHi!
Currently you can not change the icons without manually override the css, in your theme for exampleForum: Plugins
In reply to: [Kodex Posts likes] I have an idea to improveOh, no. this code just shows you how to make your own request in your theme custom files.
I tried to make you a php code that you can pastein functions.php file :add_action(‘pre_get_posts’, ‘kodex_home_posts_order’);
function kodex_home_posts_order($query){
if( $query->is_home() && $query->is_main_query() ){
$query->set(‘meta_key’, ‘kodex_post_likes_count’);
$query->set(‘orderby’, ‘meta_value_num’);
$query->set(‘order’, ‘DESC’);
}
}This code will modify the main query on your homepage to consider the posts likes count.
Hope that helps !Forum: Plugins
In reply to: [Kodex Posts likes] I have an idea to improveIn the new version (2.0), there is a example of code for make a custom WP_Query on the plugin settings page.
Hope that helps!Forum: Plugins
In reply to: [Kodex Posts likes] I have an idea to improveHi, thanks !
It’s a good idea, but i’m afraid it causes problems in category pages, post tags pages and others list pages (archives…) if the option force the most liked posts before others.
I don’t know if you’re able to modify php code, but if you can, you could use the meta ‘kodex_post_likes’ to write your own WP_Query to display posts in this orderForum: Plugins
In reply to: [Kodex Posts likes] Forums Like buttonWhat plugin do you use to manage the forums?
Is it your personnal custom post type ?
Have you got a link so i can see ?Forum: Reviews
In reply to: [Kodex Posts likes] Awesome PluginHello
With the new version 1.0.2 you can now align buttons like you want !
Thanks for the review !Forum: Reviews
In reply to: [Kodex Posts likes] Great pluginHi! Thanks for the review
– for thumb icon, i don’t understand why you don’t see them. there is in dashicons collection, from wordpress. have you a link that i can see ?
– with the new 1.0.2 version, you can totally hide counters