I have a many:many relationship form with about 30 options in the dropdown. One side of the relationship is known, the other is being selected. It seems the default is to limit options to ten. I would like to show all 30.
and added the following to my theme functions.php
add_filter('cred_select2_ajax_get_potential_relationship_parents_query_limit', function($limit){
return 30;
});
It did not work. Thanks in advance for any help you can give me.
Hello. Thank you for contacting the Toolset support.
There is no filter available to override the number of options displayed by post relationship form's select2 dropdown as it seems that its been hardcoded.
Its your choice if you want to change it and see if that helps but when you update plugins, you will require to change that limit again to your desired number.