Support » Plugin: Wired Impact Volunteer Management » Sort order of Opportunities

  • Resolved SynergyHub

    (@synergyhub)


    We would like to be able to adjust the sort order to A-Z (asc). It appears you are only using the ID (des).

    The page I need help with: [log in to see the link]

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

    (@wiredimpact)

    Thanks for reaching out @synergyhub. I assume you’re referring specifically to flexible opportunities as opposed to one-time opportunities. One-time opportunities are listed with the soonest upcoming event listed at the top, which is most likely how you’d want to keep it.

    For flexible opportunities, they are actually listed by the publish date of each volunteer opportunity. You have two ways to adjust the order of the flexible opportunities. The first is the simplest, which is to adjust the publish date for each opportunity until they show up in the order you’d prefer.

    If you’d prefer to show them alphabetically, that will require some coding knowledge. If you’re familiar with PHP you can hook into the wired-impact-volunteer-management_flexible_opp_shortcode_query filter which can be found at /frontend/class-public.php within the plugin. That filter passes in all the arguments to the call to the WP_Query class. To adjust the ordering I’d recommend looking at the order and orderby parameters on https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters. To ensure you don’t lose any code you write add the code within the functions.php file of the website’s theme.

    I hope that’s helpful and let me know if you have any other questions at all.

    Jonathan

    Thank you for the reply. Yes it is flexible (that is the page I have the link for).
    The date bit with a lot of fussing around works, but it is pretty obscure to expect a temp person to always get right. And we would have to go back in and tweek every time a new one is added.

    It would be great if we at least could have a Priority / Featured flag to sort on first and then by date. Much cleaner and easier for a worker bee to understand.

    Plugin Author Wired Impact

    (@wiredimpact)

    Thanks for the feedback @synergyhub. Having a way to promote specific flexible opportunities to the top would be a nice addition. We’ll keep that in mind for future development.

    Have a good one and don’t hesitate to reach out if you have any other questions.

    Jonathan

    Thanks Jonathan.. we greatly appreciate the timely support you all provide!

    Alan

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