• Resolved funzeye

    (@funzeye)


    I have an issue where my staff are not showing in the order.
    I have the roles nested like so in the wpcm_jobs page:
    e.g.
    -Mens Team (role id = 321)
    – chairperson (role id = 330 etc)
    – secretary
    – treasurer
    -Womens Team (role id = 323)
    – chairperson
    – secretary
    – treasurer

    However when I try to output them on the site like this:
    [wpcm_staff limit=”0″ jobs=”323″ orderby=”menu_order” stats=”thumb,name,job,email,phone” title=”Womens Team Committee”]

    They do not appear in the list in correct order – the order I would expect is how they are ordered in the wpcm_roles page – like above, but they are not.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Leon

    (@leonterry)

    Hi funzeye,

    Sorry for the delay getting back to you.

    You could achieve what you require by adding seperate staff shortcode for each job in the order you require. For example:

    [staff_list limit=”″ jobs=”CHAIRPERSON_ID″ orderby=”” stats=”thumb,name,job,email,phone” title=””]

    [staff_list limit=”″ jobs=”SECRETARY_ID″ orderby=”” stats=”thumb,name,job,email,phone” title=””]

    [staff_list limit=”″ jobs=”TREASURER_ID″ orderby=”” stats=”thumb,name,job,email,phone” title=””]

    That is the intended use of the sortcode…but you have highlighted that the menu_order option doesn’t work and I will add an option to sort by the order specified in the jobs page ??

    Also, you should be using the newer shortcodes which have been in use for over 2 years now. I will be ending backwards support for the old shortcodes in v3 of the plugin so any old shortcodes will break!

    Cheers ??

Viewing 1 replies (of 1 total)
  • The topic ‘Sort Staff by Role when nested’ is closed to new replies.