Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting Team Members in Overview? #8

Open
malik-steinert opened this issue Jun 21, 2017 · 6 comments
Open

Sorting Team Members in Overview? #8

malik-steinert opened this issue Jun 21, 2017 · 6 comments

Comments

@malik-steinert
Copy link

Hey guys, is there a way to sort the team members in an overview?

Here is the shortcode I am using to display all team members on one single page. We want to sort them:

[cherry_team columns="3" columns_laptop="2" columns_tablet="2" columns_phone="1" posts_per_page="100" excerpt_length="20" more="true" more_text="More" more_url="#" ajax_more="true" pagination="false" show_name="true" show_photo="true" show_desc="true" show_position="true" show_social="true" show_filters="false" image_size="450x450" template="default" use_space="true" use_rows_space="true"]

If not, take this as a feature request :)

Thanks and cheers

@MjHead
Copy link
Member

MjHead commented Jun 21, 2017

Hi @leeniu!

Thanks for request, if you mean custom ordering for team members in listing - this feature is planned for one of next releases. Currently you can sort it by default WordPress order parameters. Just add 'orderby' attribute into shortcode. Possible values for this attribute you can find here - https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

@ehausen
Copy link

ehausen commented Jan 9, 2018

I tried to edit some of the "order" values by using quick edit and entering numbers: 1,2,3,4,... and then tried to add orderby="menu_order" to the end of the sort code.
But does not seem to work. Is the syntax correct? Should it work?

@PatrickVorburger
Copy link

PatrickVorburger commented Jan 11, 2018

I didn't get the order working too. I added the 'orderby' and the 'order' attributes like so:

[cherry_team columns="2" columns_laptop="2" columns_tablet="2" columns_phone="1" posts_per_page="25" excerpt_length="20" more="false" more_url="#" ajax_more="true" pagination="false" show_name="true" show_photo="true" show_desc="true" show_position="true" show_social="true" show_filters="false" image_size="medium_large" template="default" use_space="true" use_rows_space="true" orderby="title" order="ASC"]

@creatal
Copy link

creatal commented Jan 31, 2018

Seems to be a good workaround here, until it's included in the shortcode. Worked for me so hope it helps others looking for similar solution.

https://wordpress.org/support/topic/sort-team-members/

@bobbybosler
Copy link

@MjHead, do we know what the status is on this and when this will be released? The "orderby" and "order" is not currently working. The workaround is decent, but will be erased if there is ever a plugin update.

@bobbybosler
Copy link

I am trying to hook into this query to make modifications to the order without directly editing the plugin. Does anyone have a solution for my problem outlined here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants