Reply To: Re-ordering a custom groups loop
Ay, thanks for that link. It certainly asnwers some of my questions!
Earlier I tried taking the selected value and storing it using jQuery.post but I couldn’t figure out how to get a working URL and even if I did, how would the groups list get refreshed?
I figured that BuddyPress has something that already does this. I looked into bp-themes/bp-default/_inc/ajax.php and saw how the bp_ajax_querystring filter is updated there with information from the browser cookies. And I assume that the directory template is reloaded using this function in the same file : bp_dtheme_object_template_loader()
It’s possible that the value from the select form is already stored but the reason why the template isn’t updating is because this line in ajax.php :
// Locate the object template
locate_template( array( "$object/$object-loop.php" ), true );
can’t locate my custom groups template?