Support

Account

Home Forums Front-end Issues Sort custom term archive by ACF date Reply To: Sort custom term archive by ACF date

  • You cannot sort in WP with two different meta fields and have the posts intermingled based on the two fields. You also cannot sort post differently based on whether or not they have a specific term.

    My suggestion would be to create an acf/save_post action. In this action copy one of the two fields based on the post’s terms to a 3rd custom field using update_post_meta(). This field would not be editable in ACF. Then use this 3rd field to for post ordering.