I’ve added the ability to order by meta_key to the development version, and it will be in the new version of Display Posts Shortcode (should be out in the next few days).
Here’s how you’ll do it:
[display-posts orderby=”meta_value_num” meta_key=”_cs-expire-date”]
For your specific need, make sure Content Scheduler is storing the date as a UNIX timestamp.
Thread Starter
morte
(@morte)
Thanks for your reply, Bill
I’ve installed last version and I’m using this:
[display-posts orderby=”meta_value_num” meta_key=”_cs-expire-date”]
But it doesn´t work for me. Meta-key “_cs-expire-date” is stored as string with the next format (example): 2013-02-15 00:00:00
I guess when you say Content Scheduler must store the date as timestamp it has to be a numeric value, ¿isn´t it?
¿Is there any other way to fix this?
Thanks one more time
Thread Starter
morte
(@morte)
Solved…
[display-posts orderby=”meta_value” meta_key=”_cs-expire-date”]