Sort by news 'sticky' and by 'Date Desc' expression
Newbie Alert :D
I have a checkbox in my 'News Article' page with an Alias of 'sticky'. How can I sort by this being checked, and by date descending, So sticky posts are set the top of the list, ordered by date?
The below does sort by Date but does not take into account if a post has the 'sticky' checkbox set to true. Do I need to do something else in my expression?
Sort by news 'sticky' and by 'Date Desc' expression
Newbie Alert :D
I have a checkbox in my 'News Article' page with an Alias of 'sticky'. How can I sort by this being
checked
, and by date descending, So sticky posts are set the top of the list, ordered by date?The below does sort by Date but does not take into account if a post has the 'sticky' checkbox set to true. Do I need to do something else in my expression?
Thanks
-David
Hi David
Try this code:
This line should do the trick:
Thanks so much, Alex :-)
is working on a reply...