Sauter la navigation

[Résolu] User Reg form not being found when called from template but ok when in post.

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I would like to insert a User Form but it doesn't seem to be working.

Solution: The shortcode for a User Form is slightly different from a Post Form. Use this shortcode syntax:

[cred_user_form form="breeder-sign-up"]

Relevant Documentation:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_user_form

This support ticket is created Il y a 6 années et 4 mois. 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

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

Dernière mise à jour par DavidH606 Il y a 6 années et 4 mois.

Assisté par: Christian Cox.

Auteur
Publications
#1127538

I am trying to: display a registration form

Link to a page where the issue can be seen: localhost

I expected to see: Breeders Sign Up form

Instead, I got: The Toolset Form breeder-sign-up does not exist

Am trying to use this in a template file to call the form. Have used this with other CRED forms before.

<?php echo do_shortcode('[cred_form form="breeder-sign-up"]'); ?>

also tried <?php echo do_shortcode("[cred_form form='breeder-sign-up']"); ?>

Appreciate your support,
Many thanks,
D

#1127649

Hi, User forms use a different shortcode. Try this syntax:

echo do_shortcode('[cred_user_form form="breeder-sign-up"]');
#1127668

My issue is resolved now. Thank you!