Sorting posts

Answered

Comments

5 comments

  • David Kortleven

    By default posts are sorted by their "published_at" date. 

    0
    Comment actions Permalink
  • Edwin Bos

    Okay, but that doesn't really answer my question ;)

    0
    Comment actions Permalink
  • David Kortleven

    So no, you can't order posts by default, other than changing the 'published_at' date. You can indeed always add a custom content field, but I can see why this would not be preferrable.

    What problem are you trying to solve exactly?

    0
    Comment actions Permalink
  • Edwin Bos

    In this case I am creating a website that contains a projects page, on that page the client can showcase some of his work.

    I would the client to be able to sort the projects, so he can control which projects to show at the top.

    0
    Comment actions Permalink
  • David Kortleven

    The best way to implement that would be to add a reference field to the element/section/post to the projects post_type, and let the client select specific posts. The reference fields does allow your client to order the selected posts.

    0
    Comment actions Permalink

Please sign in to leave a comment.