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.