I have tried searching and reading a few threads but this level of code is above my current abilities.
I am trying to setup a category template that will sort posts based on a new variable I within a New Post body.
The variable is the date that the item sale ends in a format similar to MM-DD-YYYY so when sorted ascending should put the earliest expiration date first.
Pseudocode would be something like:
Add New Post–>
Expires On: [create variable “expiration_date” = input(MM-DD-YYYY)]
countdown timer plugin (pass in variable “expiration_date” for use by plugin)
sort by “expiration_date” order=ASC
I will be able to post the current template code later from home.
Can anyone help with this? It seems simple enough, but I am just lost right now.
Thank you very much.
- The topic ‘Create New Variable In Post And Sort Category Template By That Variable’ is closed to new replies.