BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › Recommended Posts Page
- This topic has 4 replies, 2 contibutors, and was last updated 8 years, 8 months ago by Alyssa.
Question
March 13, 2016 at 10:32 pm #62847@orryspoonHi,
I am looking at creating a separate page that displays the most recommended posts over a certain time frame. Does anyone know how to do this?
Thanks
DavidAnswers
March 15, 2016 at 3:03 am #63069@orryspoonAny advice on this?
March 16, 2016 at 4:14 am #63243@alyssa-buddyboss
AlyssaParticipantHi David,
We apologize for the delayed response, we are aware of the poor support performance over the last few weeks and are working hard on getting this back to normal. Meanwhile, I’m here to help, while we work on solving this.
Try with following query. This will return most recommended posts.
$query_args = array( 'post_type' => 'post', 'post_status' => 'publish', 'meta_key' => '_post_like_count', 'orderby' => 'meta_value_num', 'order' => 'DESC', ); $posts = new WP_Query( $query_args );
Thanks again for your patience.
March 17, 2016 at 10:01 am #63633@orryspoonHi,
I am not technical so where do I put this code?
David
March 19, 2016 at 12:01 pm #64085@alyssa-buddyboss
AlyssaParticipantHello David,
We provide advanced support for helping with customizations once all other support forum customers have been taken care of. Please allow several days so I may schedule time to help here. It requires creating a new template and adding custom code there, something beyond standard support as this is actually a customization.
Thanks again for your patience.
- The question ‘Recommended Posts Page’ is closed to new replies.