This support ticket is created hace 7 años, 1 mes. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
I have CPT called "members(company)".
I would like to relate "members" to "delegates(users with role delegates)".
Users are getting registered from front end,so once user registers it will be listed inside "users" in wp admin and there I am having "Working at" dropdown on the wp-admin side.
"Working at" would be dropdown & it will have "members(company)" as options in dropdown.from there I can assign "company" to particular user.Now I have company detail page on front end in which I would like to display list of "delegates(users with role delegates)" working at that particular company.
To achieve above goal I tried to set parent/child post relationship but, I can't see "user" option inside CPT called "members(company)". Please check attached screenshot for better understanding.
Hello. Thank you for contacting the Toolset support.
Well - you can not connect user with post type and build posttype relationship between post and users.
However, as I understand you want to list CPT Member post titles with "Working at" dropdown at user? Could you please be more specific what exactly you want to display with "Working at" dropdown as optons.
Above code is working and I can see "members" in "working at" dropdown. As I have mentioned in my first post "from there I can assign "company" to particular user.Now I have company detail page on front end in which I would like to display list of "delegates(users with role delegates)" working at that particular company."Please see screenshot as well from first post and current post.
As I understand - now you want to display on single company page all the members who is working on that company - correct? If yes:
Could you please share problem URL with test content setup (member, user).
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
It is working but I see below lines in one of my page.
Content Template debug:
Calling functions are call_user_func
Above errors are gone as I activated "Buro Tijs theme mods" plugin.
Did you change theme before when you were working?
I have other dropdowns as well in users that is "committee" dropdown, In that I would like to display other CPT.
The filter you gave above If I add new cases. Will it work for me?
It is working but I see below lines in one of my page.
Content Template debug:
Calling functions are call_user_func
Did you change theme before when you were working?
==> OK - I've fix that and deactivate the setting 🙂
I have other dropdowns as well in users that is "committee" dropdown, In that I would like to display other CPT.
The filter you gave above If I add new cases. Will it work for me?
==> Yes - you need to adjust your as per your need and filed name.
In "Working at member" dropdown I see all "Members" that is fine..How to add "select" option as first option in that dropdown just to show default value in dropdown.