I was wondering if you guys could help me out with a code snippet showing how I could sort posts by PostViewCount rather than Date/Random/ID. I know it's possible and I'm sure you guys know how to achieve this. I just can't seem to find the code that creates this functionality or else I'd try editing it myself.
I understand some of the functionality lies in functions.php but I can't seem to find where the initial penci_custom_posts_oderby() function is located.
Could you guys please just do up a quick code edit and send it to me? Literally just show me where to put my ViewCount variable to have it sort based on that variable.
Thanks a ton!!!! How hard would it be to setup functionality for setting up a link/dropdown options on the category/index template pages where a user can click and it will sort all post teasers on the page by ViewCount, Date, Random, etc either via page refresh or ajax, I don't care really.
Have you guys done this sort of functionality for anyone? If so I would greatly appreciate if you'd point me in the right direction. Your theme is amazing albeit a bit advanced for me at the moment. I just need this last functionality to finish the site. Any information would be amazing!
I was wondering if you guys could help me out with a code snippet showing how I could sort posts by PostViewCount rather than Date/Random/ID. I know it's possible and I'm sure you guys know how to achieve this. I just can't seem to find the code that creates this functionality or else I'd try editing it myself.
I understand some of the functionality lies in functions.php but I can't seem to find where the initial penci_custom_posts_oderby() function is located.
Could you guys please just do up a quick code edit and send it to me? Literally just show me where to put my ViewCount variable to have it sort based on that variable.
I'm really enjoying the theme, amazing work!
Thanks so much,
Shaugn
Hi,
Please open functions.php file and find function penci_custom_posts_oderby:
Let's replace it to:
Best Regards,
PenciDesign
Thanks a ton!!!! How hard would it be to setup functionality for setting up a link/dropdown options on the category/index template pages where a user can click and it will sort all post teasers on the page by ViewCount, Date, Random, etc either via page refresh or ajax, I don't care really.
Have you guys done this sort of functionality for anyone? If so I would greatly appreciate if you'd point me in the right direction. Your theme is amazing albeit a bit advanced for me at the moment. I just need this last functionality to finish the site. Any information would be amazing!
Kind regards,
Shaugn
Hi,
Thank you for loving our theme.
Unfortunately, this theme doesn't support this feature at this time..
That's too much work to do and we don't provide support for requirements like that.
Best Regards,
PenciDesign