Skip Navigation

[Resolved] Link users to posts

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 6 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#614566

I have situations where I want to link a user to a post even though they are not the post's author.

For example, on a radio station site, I want to link presenters to shows. The shows are a CPT created by the station manager but the presenters present the shows and are registered users of the site. Some sort of parent/child relationship linking posts to users would be really helpful.

#614797

This comes up once a while, and usually, I recommend to connect the Posts thru the authorship to the users.

In your case that's not possible, this means you need a Substituting CPT that "mimics" the Users.

1. Create a new CPT and name it as example "Members"
2. Make sure this CPT features the "Author" Field which you can decide when you setup the Post Type. Having an Author makes it easier later to classify these posts
3. Add eventually Custom Fields to the CPT's to add more necessary information on the users

Then, you need to create for each user a new post in that CTP and set the user as it's author.
Fill out the Custom Fields and then connect this Post (user) to your other posts you want to connect.

This also makes it easier later in Toolset Views to actually create custom searches thru "users" even thou you will actually query Posts, which are mirroring the User data.

Does this make sense to you?
It's the only solution right now.

This can also be partially automated with CRED for example.
When a new User Form is submitted and a user created you can run a Script that hooks in the CRED Form and creates the above mirroring post automatically.

Please let me know if you need more information on this.

The forum ‘Types Community Support’ is closed to new topics and replies.