Skip Navigation

[Resolved] Allow user to create one post only

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

Problem:

At the Issuer Profile page, I would like to hide the tab group that holds links to forms to populate RFGs.

When the visitor clicks Create listing it takes them to a page to create the listing. When they complete it they are returned to the Issuer profile page.

At that point I want the tab groups to appear and the Create listing link to disappear.

My issue is that al of this is inside of a content template so it can pull data back based on the logged in user.

Solution:

Yes, you are right, it needs a View. For example:

https://toolset.com/forums/topic/allow-user-to-create-one-post-only/#post-1286993

Relevant Documentation:

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

This support ticket is created 4 years, 8 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by andrewS-24 4 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1286863

Tell us what you are trying to do? Trying to hide the Create Post link in their profile after they have created one item

Is there any documentation that you are following? no

Is there a similar example that we can see?

What is the link to your site? hidden link

#1286881
2019-07-08_17-33-22.jpg

At the Issuer Profile page, I would like to hide the tab group that holds links to forms to populate RFGs.

When the visitor clicks Create listing it takes them to a page to create the listing. When they complete it they are returned to the Issuer profile page.

At that point I want the tab groups to appear and the Create listing link to disappear.

My issue is that al of this is inside of a content template so it can pull data back based on the logged in user.

I think I need to create a view inside of this template to hold the tab group and the create listing link to accomplish this task. Is that correct?

#1286993

Hello,

Yes, you are right, it needs a View. I suggest you try these:

1) In the Issuer Profile page, create a post view:
- Query listing posts
- filter by:
post's author is current logged in user:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/

2) In section "Loop Editor" of above post view, within shortcode <wpv-loop>... </wpv-loop>, display the "tab groups"

3) within shortcode [wpv-no-items-found] ... [/wpv-no-items-found], display the "Create listing link"

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-no-items-found

#1290181

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.