WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Suite
[resolved] Sorting via Loop (2 posts)

  1. consumedesign
    Member
    Posted 1 year ago #

    I am looking to sort by a date, but that start_date is used within a loop, so:

    {"486":{"post_title":"Seminars","post_name":"seminars","cfs_rules":{"post_types":{"operator":"==","values":["post"]},"user_roles":{"operator":"==","values":["administrator"]},"term_ids":{"operator":"==","values":["10"]}},"cfs_extras":{"hide_editor":"0"},"cfs_fields":[{"id":"9","name":"seminar_info","label":"Seminar Info","type":"loop","notes":"","parent_id":0,"weight":0,"options":{"row_display":"0","row_label":"Loop Row","button_label":"Add Row"}},{"id":"8","name":"room_number","label":"Room Number","type":"text","notes":"","parent_id":9,"weight":1,"options":{"default_value":"","required":"0"}},{"id":"1","name":"start_date","label":"Start Date","type":"date","notes":"","parent_id":9,"weight":2,"options":{"required":"0"}},{"id":"13","name":"end_date","label":"End Date","type":"date","notes":"","parent_id":9,"weight":3,"options":{"required":"0"}},{"id":"2","name":"speaker","label":"Speaker","type":"text","notes":"","parent_id":0,"weight":4,"options":{"default_value":"","required":"0"}},{"id":"3","name":"company","label":"Company","type":"text","notes":"","parent_id":0,"weight":5,"options":{"default_value":"","required":"0"}},{"id":"4","name":"company-url","label":"Company URL","type":"text","notes":"","parent_id":0,"weight":6,"options":{"default_value":"","required":"0"}},{"id":"5","name":"bio","label":"Bio","type":"textarea","notes":"","parent_id":0,"weight":7,"options":{"default_value":"","formatting":"auto_br","required":"0"}}]}}

    Is it possible?

    http://wordpress.org/extend/plugins/custom-field-suite/

  2. consumedesign
    Member
    Posted 1 year ago #

    Hm, never mind... some reason it wasn't working now it is using the 'meta_key' => 'start_date'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic