So, in this topic (https://toolset.com/forums/topic/drop-down-menus-for-countries-and-cities-in-dependency/), with the Christian Cox suggestion and Toolset guide, I have used the Toolset Relationship functions, to set some post dependencies. Well, I have created the Profile CPT that it is child of Città CPT, that it is child of Provincia CPT, that it is child of Regione CPT, that it is child of Stato CPT, all with parents with an address custom field.
And so, now I'm trying to create the Custom Search and I cannot add the form to search the posts about its dependencies (parent, grand parent, grand grand parent, grand grand grand parent).
So, a solution that I have thought is to create the relative Address Custom Fields into Profile CPT posts, to dynamically save the values about the Parent, Grand Parent, etc... Address Custom Fields. But I don't know what custom code I need to use...
And also, If there is a solution to do what I need, to integrate the Select2 to select the items in Custom Search, because only the Città CPT have up to 8000 items....
Can you help me on that? Because if there are no solutions to do that, all work and all the time will be lost...
Can I pay to have what I need!!!!
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Francesco
I think what you are describing is covered with relationship filters where you can add more ancestors than just the parent (e.g. grandparents, great grandparents etc.).
Hi Nigel, thanks.
This is what I need, but I think there is a code conflict with my View installation.
Because when I select the Filter by post relationship / repeatable field groups owner, don't appear any dialog box. When I click on it, the system return to the Search and Pagination section...
Thanks.
My site is a big site. It is a WordPress multisite installation and goes over 20Gb of space...
I don't know if you can to do it with Duplicator. But, if you want, to do the backup I use Snapshot Pro, I can create a backup only about this specific site and with the Snapshot Pro you can try to restore it in localhost. But I think that the issue is related to the WordPress Multisite installation.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Francesco
Before trying that, I just ran a check on a multisite installation to see if I could reproduce the JS error when trying to insert a post relationship filter, but could not.
So I don't think it is because you have a multisite network that you are seeing the problem, the most likely cause is a 3rd party conflict, so let's see if we can eliminate that before going any further.
Which means after ensuring that all plugins are up-to-date disabling all non-Toolset plugins and switching to a default theme like twentynineteen.
So, I do that, and I have not only deactivated the plugins and the themes, but I have moved them in an external folder, I left only the "type" and "wp-views" folders, but I don't have seen any improvement...
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi Francesco
I had already asked the devs about this earlier this morning as I didn't notice any progress on the internal ticket. I'm told that the fix for the issue should be fairly straightforward and it will be included in the next update for Views—which is due soon—it just hasn't been implemented yet.