As per the title. I have a dropdown set up like this:
<div class="form-group">
<label>Crew Member</label>
[cred_field field='@crew-member-crew-certificate.parent' select_text='--- not set ---' class='form-control' use_select2='always' output='bootstrap' author='$current']
</div>
To set a relationship between two post types. However, the above code only outputs the first ten possible crew members, not the full ten. They all have the correct author set etc.
Is there a limitation of ten when using select2 or something?
Languages: English (English )Chinese (Simplified) (简体中文 )
Timezone: Asia/Hong_Kong (GMT+08:00)
By default the parent select2 selector will output only 10 items, you will need to type some keywords and search.
If you want display more items in the select2 search result, you can use Form filter hook cred_select2_ajax_get_potential_parents_query_limit, for example:
Hi Luo, great- I thought there was some kind of limit. I've added that code, but it doesn't appear to do anything unfortunately. Any ideas why that could be?
Languages: English (English )Chinese (Simplified) (简体中文 )
Timezone: Asia/Hong_Kong (GMT+08:00)
You are right, it is another filter hook "cred_select2_ajax_get_potential_relationship_parents_query_limit", please try to change the PHP codes as below: