PDA

View Full Version : Need Help: wrongly display most liked content



calmhawk919
08-12-2015, 01:01 PM
My Plan is VIP. But I find that it wrongly display most liked content. And it shows error :Statistics not available, enable synchronization in order to view statistics
But I have enabled synchronization. The error picture is as bellow:
Can you tell what's wrong?

http://www.poemporn.com/wp-content/uploads/2015/08/110.png

http://www.poemporn.com/?cat=12

support
08-13-2015, 09:55 AM
Could you please provide a picture of your synchronization page?

calmhawk919
08-14-2015, 07:02 AM
I use this code to sort the most liked post in category. <?php query_posts($query_string . '&meta_key=Likes&orderby=meta_value&order=DESC'); ?>

But it doesn't work correctly. You can check here: http://www.poemporn.com/?cat=14&paged=3

Picture of my synchronization page: http://www.poemporn.com/wp-content/uploads/2015/08/213.png

LikeBtn
08-14-2015, 08:01 AM
Could you please send a list of installed plugins.
Could you please try to Run Full Sync Manually and let us know results.

calmhawk919
08-15-2015, 08:42 AM
Could you please send a list of installed plugins.
Could you please try to Run Full Sync Manually and let us know results.

list of installed plugins:

Easy Facebook Likebox
Like Button Voting & Rating

Quick Featured Images

Shortcodes in Sidebar Widgets


I have Run Full Sync Manually. But the error still exist.

LikeBtn
08-15-2015, 10:11 AM
I use this code to sort the most liked post in category. <?php query_posts($query_string . '&meta_key=Likes&orderby=meta_value&order=DESC'); ?>

It looks like you need to sort posts by likes in categories, right? Into which file did you insert this code?

calmhawk919
08-15-2015, 03:19 PM
Yes, I inserted this code in category.php as below.


<?php query_posts($query_string . '&meta_key=Likes&orderby=meta_value&order=DESC'); ?>

<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>

But It don't work correctly as you see. What's wrong?

LikeBtn
08-16-2015, 10:10 AM
We've tested it on Twenty Thirteen theme and it works. Could you please:
1) Make sure that you've edited category.php of the inside /wp-content/themes/twentythirteen
2) Send us your category.php template to support@likebtn.com
3) Make sure that liked posts have Likes custom field (http://www.youtube.com/watch?v=msUjikwkEAw)

calmhawk919
08-17-2015, 07:01 AM
I have send the category.php template to support@likebtn.com. I have aslo send my wordpress username and password. You can login to check what's wrong. Please fix it for me. Thanks very much.

LikeBtn
08-18-2015, 08:03 AM
Unfortunately we did not receive your email with file and username and password at support@likebtn.com. We've emailed you at @126.com

calmhawk919
08-18-2015, 08:23 AM
I have sent you the username and password at support@likebtn.com once again.

The username is the same as my likebtn.com account and my VIP plan.

The pass !word: 919eagle

LikeBtn
08-18-2015, 09:12 AM
Thank you, we got access. Could you please provide an access to the server, it is needed to find the reason why sorting is not working on your installation.

calmhawk919
08-18-2015, 10:12 AM
I find that Most Liked content in the windget is working ok.

But some category most liked content don't work correctly. Some category are ok.

Acturall All I want is I can show the most liked posts in one page sorted by DEC.

Can you help me?

LikeBtn
08-18-2015, 04:51 PM
We've found the reason. Please change this line in category.php

<?php query_posts($query_string . '&meta_key=Likes&orderby=meta_value&order=DESC'); ?>

to

<?php query_posts($query_string . '&meta_key=Likes&orderby=meta_value&meta_type=numeric&order=DESC'); ?>

Make sure that "numeric" is written without spaces.

calmhawk919
08-19-2015, 01:04 AM
Yes. It's OK NOW. THANK YOU VERY MUCH.