CMB2 / cmb2-attached-posts

Custom field for CMB2 for attaching posts to a page.
GNU General Public License v2.0
135 stars 62 forks source link

Load max 20 post and search more by Ajax #26

Closed dankocrama closed 7 years ago

dankocrama commented 8 years ago

Hello,

I would like to know if there is a way to load lets say 20 post and if we use the search that them it gets more posts by ajax, that are matching the search. because we have more the 20.000 post so we can't load the page.

Hope you can help us out

mckernanin commented 8 years ago

You might want to try this plugin: https://github.com/WebDevStudios/CMB2-Post-Search-field

dankocrama commented 8 years ago

Thanks for the reply 👍 i already use this plugin but find the usability less.

mralessio commented 8 years ago

I would agree with @dankocrama980. Two thumbs up if search/autocomplete functionality would be in this plugin. Also tried Post Search Field, but it shows just IDs in the field, which is not convinient for users or editors, so after selecting some posts you can't remember the actual posts' name and reselect them, and no thumbnails. I'd say it's quite specific.

cmb2-attached-posts is much more in line for the goal of connecting any related items, as it works in very visually friendly way. Once you return to the post you see what are related already and can add/remove quickly. If it had the search/autocomplete functionality it would be really a great and complete solution. Much as like as ACF has for this kind of things.

jtsternberg commented 8 years ago

I would also agree, two 👍👍 for this feature. I doubt I'll be able to get to it soon, but would be happy to take a look at a PR.

luxdeluks commented 8 years ago

Have you perhaps considered using a select element and then attaching for example select2 ?

In fact I'll try and modify the code these days if I get the time since the current selection process isn't really 'user-friendly' in that you can't just click the whole element.

jtsternberg commented 7 years ago

Closing this as we now have a search feature to search for posts not in the list.