Saltar navegación

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

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 6 años, 4 meses. 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)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por DavidH606 hace 6 años, 4 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#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!