Passer la navigation

[Résolu] Can only post a certain post type when already posted another post type – post

This support ticket is created Il y a 1 year, 10 months. 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
- 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 1 year, 10 months.

Assisté par: Minesh.

Auteur
Publications
#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: lien caché) before they can upload kunstwerken (art pieces: lien caché) 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

Les langues: Anglais (English )

Fuseau horaire: 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":
- lien caché

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

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I've created the following view:
- lien caché

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.
=> lien caché

Can you please confirm it works as expected now: lien caché

#2711574

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