Skip Navigation

[Resolved] Can only post a certain post type when already posted another post type – post

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 3 months, 3 weeks ago.

Assisted by: Minesh.

Author
Posts
#2711344

Hi, thanks fort answering this topic: https://toolset.com/forums/topic/will-need-to-hide-a-link-to-post-artwork-unless-author-has-made-a-bio/

But I'm afraid this is too complex for me since i'm not a programmer. Can you help me with a solution?

Users (artists) need to make a kunstenaars page (bio: hidden link) before they can upload kunstwerken (art pieces: hidden link) But we need a way that when they start uploading art without having a kunsternaar page (bio) , they get a message: You need to make a bio first!

Thank you!

#2711422

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I can see on the following page you are displaying the form to upload "art pieces":
- hidden link

What if we just hide the form if there is no "bio" uploaded and display the message "You need to make a bio first!" and offer a link so that they can click on that and navigate to bio upload page.

Also I would like to confirm here - every user will have only one bio post or more than that?

#2711432

Yes that would be great! Indeed, they can only make one bio. After that they can only edit that page.

#2711510

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've created the following view:
- hidden link

As you may noticed I've added the Toolset Form shortcode: [cred_form form="kunstwerk-indienen"] after the shortcode: [wpv-items-found] - that means view will try to find the posts belongs to current loggedin post author for the post type "Kunstenaars" so if items found - it will display the form otherwise it will display the [wpv-no-items-found] section text.

Then I've added the above view to your page and removed the existing form you have on this page as form will be displayed from view when items found.
=> hidden link

Can you please confirm it works as expected now: hidden link

#2711574

This is exactly what i needed! Thanks a lot!!!