Navigation überspringen

[Gelöst] User Reg form not being found when called from template but ok when in post.

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 6 Jahren, 4 Monaten. 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von DavidH606 vor 6 Jahren, 4 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#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!