Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Adding new ‘Order By’ on members loop

@ch1n3s3b0y

Participant

@shanebp Thank you so much for your help. I got that working. I managed to query based on the new buddypress member types and also an xprofile field which is great.

One weird issue, I can’t see to order them accurately by the xprofile field (which is price). No matter whether I make SQL ORDER BY ASC or DESC the results always appear in the same order in the members loop. The SQL is definitely returning the results in the correct order as I have done a var_dump and checked.

Could it be something to do with

$ch_querystring['type'] = 'price';

I have changed this to a different ‘type’ and it does change the results, but not to display them in the order I want.

Skip to toolbar