Skip Navigation

[Resolved] Post to User relations

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, 9 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#629796

Hi

I need help to make a one to many relations between one user and many post.
I want to view a members sports result. A user can have many results

How do I make a post type "Result" with ex. two fields date and result. Each post is connected to a specific wordpress user.

Ex
Wordpress user = Morten Hansen has following result
2018-01-10, 1 place
2018-02-23, 9 place
2018-03-01, 10 place

Wordpress user = Peter Dahl has following result
2017-12-12, 2 place
2018-03-20, 3 place

Tell us what you are trying to do?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#629929

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Carsten

Firstly, please note that you are posting in the Community Forum for users of the free Types plugin. As a Toolset customer you can and should post in the Technical Support forum which we prioritise and where you should receive speedier service.

The simplest way to connect users and posts is to make the user the author of the post, and them your View can simply filter by post author.

Is that an option? Go to Toolset > Post Types and edit your results custom post type and make sure post author is checked in the "Sections to display when editing..." metabox.

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