Sort Posts based on multiple criteria
-
Hello,
I want to create a custom post type that has a few custom meta fields that can hold only numbers. One of them is to be used as OUTPUT while all the others as INPUTS.
Secondly, I want to include all the INPUTS in a custom equation (e.g. INPUT A + INPUT B + INPUT C etc.) and I want the result of computing that equation to be automatically filled/updated in the OUTPUT metafield.
I intend to use the number in the OUTPUT metafield as a post order criteria.
I found many plugins for performing calculations inside WordPress environment but all of them are for giving the user the option to fill in the equation inputs while I want that equation inputs to be automatically taken from the post metafields.
Any idea about what I should try?
- The topic ‘Sort Posts based on multiple criteria’ is closed to new replies.