Skip to content

Add Order to ACF multiple value in loop query  #146

@ghen-arvesu

Description

@ghen-arvesu

Hi @eliot-akira can we have a custom order for ACF with multiple values such as acf_post, acf_relationship, acf_select, and other fields that often store values, and having the ability to order queries based on these arrays?

An example of maybe something like below:

<Loop acf_post=my-post-name orderby="title" order="desc">
  <Field title />
</Loop>
<Loop acf_select=my-select-name field=labels>
  Label: <Field />
</Loop>
<Loop acf_repeater=my-repeater-name>
  <Field title />
</Loop>

Which could be based on the values below
image

this is related to a post on https://tangibletalk.com/t/acf-repeater-loop-filtering/1275

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions