order wordpress posts by facebook likes

onz123

New member
Jan 7, 2011
133
2
0
I'd like to order my wordpress posts by facebook likes. I know that I have to store the meta data somehow and then use the orderby thing within the wp_query.

I found a plugin which only messed up my theme and a tutorial that didn't work. So maybe someone here can help me.
 


I would hijack the on site Like button to also increase a a meta value. Otherwise all your posts will need to to check and update each time they are loaded so the next user gets the correct count &/or sort order.
 
I would hijack the on site Like button to also increase a a meta value. Otherwise all your posts will need to to check and update each time they are loaded so the next user gets the correct count &/or sort order.

Sorry for not replying for so long - I worked on other things on the site in the meantime, because this problem just seemed to difficult for me, as I don't know anything about php or whatever you'd use for this.

I understand that if the posts are sorted everytime a user loads the content the loading time will increase. But what if you'd write something that sorts all the posts at a specific time. Like every day at 00:00 it goes through all the posts and sorts them after the facebook likes.

Would that be possible? I'd even pay money if someone would write something like that for me.
 
Sync the sort order when you get a new like, rather than on each page load