• Voters’ avatar show in the single post page but I don’t know why it doesn’t show up in the post lists?
    “Show voters after post/page content?” setting is on.

    I see addKKLikeVoters($) function in the admin.php file and I added that inside the loop to see it would have any effect but it didn’t.

    What else I can do to show avatars?

    https://www.ads-software.com/extend/plugins/kk-i-like-it/

Viewing 1 replies (of 1 total)
  • Thread Starter talha8877

    (@talha8877)

    It’s taking me a lot of time but I’m finding solutions one at a time.

    So, if Voters only show up on single post pages and not on post lists, you have to change this line in kklikeit/admin.php
    if(count($dane) > 0 && is_single() && $kkLikeSettings['show_voters'] == 'on'){

    to
    if(count($dane) > 0 && $kkLikeSettings['show_voters'] == 'on'){

    As you see it was set to is_single() by default and I just removed that.

    Now there’s one more problem to be solved.
    I use this in a daily deals site and deal posts are different then default post types. I guess this is called a ‘custom post type’.

    Again , in admin.php the function is set as

    function addKKLikeVoters($content){
    	global $post, $kkLikeSettings;

    So it displays Voters only in default post types. Strangely it shows the button in my custom posts lists but not the avatars.

    How can I change it from default post type to my ‘wpdeals’ post type so the Voters show up on Deals list as well?

Viewing 1 replies (of 1 total)
  • The topic ‘Avatars doesn't show in latest posts’ is closed to new replies.