Home>Support>Order posts in Post Loop by custom field

Order posts in Post Loop by custom field

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 1 month ago Alex S
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More