Sign in

#getPostsByTags order by publication date

  • This topic has 2 replies, 2 voices, and was last updated 2 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5618
    Avatar photogpsblues

    Hello,

    Is it possible to sort posts by publication date using {{#getPostsByTags “orderby=…”}}.
    What are the values to use with orderby?

    I tried with:

    • orderby=published
    • orderby=publishedAt
    • orderby=published_At

    but they are wrong.

    Thankyou

    #5627
    Avatar photoTomasz Dziuda

    Hi,

    Please try to use created_at

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #5636
    Avatar photogpsblues

    Thank you Tomasz,

    works with createdAt

    🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.