Skip Navigation

[Resolved] How to assign a custom post type post to an individual user?

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to assign individual posts to specific users?

Solution:
The easiest way to achieve this is simply to make them the author of the post.

You'll need to edit the post type settings at Toolset > Post Type and under "Sections to display when editing..." make sure author is checked so that you can set the post author.

This support ticket is created 5 years, 11 months ago. 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.

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 2 replies, has 2 voices.

Last updated by wilfredC 5 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1207381

I created a custom post type called "Tasks".

I as the site admin I want to create the task listing myself and assign it to my user, and only the user I assigned can see their task in their user account.

For example:
I create a task name "Print the abc company document" and I assigned it to one of my user Jason, So only Jason can see the task that I list it to him.

How can I achieve it with Toolset?

#1207388

Nigel
Supporter

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

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

Hi Wilfred

The simplest way to achieve this is to make the user the author of the post. You can add a View to a page to list tasks and add a Query Filter to only show tasks authored by the current user, so when Jason is logged in he will see only his tasks.

https://toolset.com/documentation/user-guides/filtering-views-query-by-author/

You can use Access to set rules for the post type that users with the role in question can only edit their own content.

https://toolset.com/documentation/user-guides/setting-access-control/

You'll need to edit the Tasks settings at Toolset > Post Type and under "Sections to display when editing Tasks" make sure author is checked so that you can set the post author.

#1207391

Ok got it, Thank for the help Nigel