Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm wondering what is the best way to sort posts on homepage using a small algorithm like custom_field_votes / ( post_hours_old + 2 ) ^ 1.8

I have tried creating a new custom field with the result but updating all posts at once or even hourly with a cron doesn't sound very good (performance).

Any opinions?

share|improve this question
    
What have you already tried? Please show us your research. –  kaiser Sep 2 '13 at 11:37
    
Please don't link to external sources. Just edit your question and add the code there. –  kaiser Sep 2 '13 at 14:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.