Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author adamtootle

    (@adamtootle)

    Have you tried using the orderby param in the staff-directory shortcode? You should be able to use [staff-directory orderby=field]. Let me know if that’s not working for you.

    Thanks!
    Adam

    I set up a field called sort_order and I have a 1 and 2 entered for each person in the directory so far (https://fullscopecreative.com/dev/aquaponics/?page_id=100) and I have this for the shortcode: [staff-directory orderby=’sort_order’] but it’s not ordering by the sort_order field. Any advice?

    Try without the single quotes.

    [staff-directory orderby=sort_order]

    You can further order them by

    [staff-directory orderby=sort_order order=asc]
    or
    [staff-directory orderby=sort_order order=desc]

    The help section indicates “the attribute to use for ordering. Supported values are ‘name’ and ‘ID’. (Ex: [staff-directory orderby=name])” so I am not sure if you can use custom field. If this is the case, and you only have one category, you can sort them by “order=asc”

    If sorting is paramount and you have multiple categories, I found for now just change the date and time of each staff–very similar to changing date and time on posts. This orders the way I’d like to see it (until the plug-in has built in ordering system).

    Hi Adam,
    Really great plugin! Thx.
    One issue I have, however. I added some custom fields and the code [staff-directory orderby=field] just does not work for me. Of course ‘field’ equals to the name of the specific custom template shortcode. Can you please help?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ordering’ is closed to new replies.