• Resolved Hector

    (@hectorpn)


    Hi!

    Is it possible (either natively or through an add-on) to sort by a custom ACF field?

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @hectorpn,
    I have an example of this.
    https://connekthq.com/plugins/ajax-load-more/examples/event-listing/

    EDIT***
    Oh, sort by custom field…
    Yes you can do that.

    [ajax_load_more orderby="meta_value" meta_key="{your_custom_field_name"]

    Hope this helps.

    Cheers,

    Thread Starter Hector

    (@hectorpn)

    Hi @dcooney,

    Do you do custom work? I need to implement a faceted navigation (i.e. layered filter) where users can filter the posts based on custom fields. By using checkboxes, drop-downs or text fields. For example, lets say the custom post types have the following custom fields:

    – Months (Jan – Dec)
    – Gender (Male / Female)
    – Title

    … and I want users to filter by gender (checkboxes) and/or by month (drop-down) and/or Title (text field)

    Do you do such custom jobs?

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sort by ACF custom field’ is closed to new replies.