Sorting based on likes
-
Any way, when I am in admin mode/looking at all posts to sort on number of ‘Likes?’
The blog I need help with is: (visible only to logged in users)
-
hi,
“Your stats page includes a bunch of nifty graphs, charts, and lists that show you how many visits your site gets, what posts and pages are the most popular ones, and much more.”
Let us know if you have more questions.
-
Hello,
Yes, I know there are graphs and such; what I need specifically is to be able to sort the actual posts based on the number of likes. You can sort ascending or descending based on number of comments, I would like to sort based on number of likes. Is that possible?
-
hi,
This shortcode will show posts ordered by user liked:
[display-posts orderby="meta_value_num" meta_key="_user_liked"]
https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
https://github.com/JonMasterson/WordPress-Post-Like-System/issues/39Let us know if you have more questions.
-
Hi there,
This is not possible, no.
The sort by comments option in WP-Admin is part of the core WordPress software. Likes do not form part of Core, but is a feature specific to WordPress.com, and we did not make that a sortable field in WP-Admin.
The OP’s question is not regarding stats, but regarding the All Posts view in WP-Admin.
Additionally, the WordPress.com Display Posts shortcode does not support a meta_key argument, and that code you provided will not work. Only the arguments listed under https://en.support.wordpress.com/display-posts-shortcode/#arguments can be used.
The GitHub issue you linked to is not relevant here at all, as that is regarding a completely different comments like system that can only be used on self-hosted WordPress sites, and has no connection to WordPress.com Likes.
- The topic ‘Sorting based on likes’ is closed to new replies.