Registration form shortcode not working in template file

Home Forums User Registration Registration form shortcode not working in template file

This topic contains 3 replies, has 2 voices, and was last updated by  kwilliams 2 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1155


    First of all, this plugin is a great simple solution for user registration!

    My issue:
    I’m trying to incorporate this registration form into a template file. I’m using the shortcode provided to me like so:

    <?php echo do_shortcode(‘[user_registration_form id="11164"]‘); ?>

    This renders the form just fine but when I click submit all that happens is the page refreshes without registering a user. This works just fine when I place it directly into a page via the editor on WordPress.

    I really need to include this form in my template. Is there something I’m doing wrong here or is there another method I can try to get this form to work properly?




    Hello kwilliams,

    The shortcode should and is working fine in template files too. The shortcode is also fine. Can you please provide your site link so that we can replicate the issue and we will figure out the possible solution. Thanks.

    WPEverest Support



    Hi, you can view the website here:

    I also tested this issue on my local machine using a different wordpress theme and experienced the same issue. I appreciate your help!

    Edit: Actually, it works using the do_shortcode method when included in other parts of the website with the exception of the custom post type I’m using.



    After a bit more troubleshooting, it appears that the registration form doesn’t want to work on post templates (default or custom posts, single or archive). It works just find on custom page templates.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.