Skip Navigation

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

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

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 6 years, 1 month 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.

Our next available supporter will start replying to tickets in about 2.47 hours from now. Thank you for your understanding.

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)

This topic contains 2 replies, has 2 voices.

Last updated by DavidH606 6 years, 1 month ago.

Assisted by: Christian Cox.

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