This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Order posts in Post Loop by custom field

7 years ago · Last reply by Alex S 7 years ago

Hello,

I have added a custom field to my posts called “startdate”. In the Posts Loop I want to sort my posts by that field. I thought “Order by meta value” in the Post Loop settings might be the right place to do this. However, there is no option so select which meta value should be used for the sorting.

How can I achieve this?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 7 years, 8 months ago

    Hi Matt,

    You can specify the meta key by adding the following to the Additional field:

    meta_key=META KEY NAME HERE

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread