Create custom page for user registration

Asked

Viewed 9,603 times

7

I need to create a custom page for registering users in wordpress.

In addition to the traditional form, by the URL /wp-login.php?action=register there is some way to create a custom page and call that same form?

3 answers

8


** It is better to go through the path I mentioned in the reply, because to modify the login structure of the Wordpress panel, put at risk your site and its users in terms of security and with constant updates of Wordpress, you will have future problems arising from this modification.

It is sure how to create a user registration page using even another table and system login and session and listing of users and etc. If you are a programmer, accessing this folder from your website with ftp at wp-content/themes/meu-tema/, you will open the page.php and put the following code in this file just below <?php get_header(); ?>

<?php /* Template name: Meu Formulário Personalizado */ ?>

Doing this and saving the file with the name page_form_customizado.php for example (do not replace your page.php), when entering the administrative area of Wordpress and clicking create new page, in the drop-down list of page templates located in the right sidebar, it will be written Meu Formulário Personalizado that when selected and once published the page and its content will appear on the site.

From there, just do all your manipulations in any programming language accepted by your server and that does not conflict with existing code, for example javascript, and view the page that your form and the entire structure of it will be running in front and backend of your site to do what you have determined.

You can also install plugins with or without shortcodes to do what you need within this custom page. Any further questions?

In short:

1 - Access the folder of your active theme via FTP.

2 - Create in active theme folder page_form_customizado.php with even page.php content

3 - Place <?php /* Template name: Meu Formulário Personalizado */ ?> and sage.

4 - Go to the administrative area and activate the custom page.

5 - Inserts content via Wordpress or programming.

  • You’re right @Bacco, it was really just a text hit. Let me modify the highlight.

  • It would be interesting to leave the word Wordpress in the title for Google indexing purposes in the sense that if the person search for página personalizada no Wordpress You’ll find exactly the answer you need @Bacco

  • For that there are tags, the system has been done thinking about it. the word wordpress beyond the tag, appears in the body of the question. I could keep it in the title, but I don’t think it will make so much difference (but feel free to suggest it as an edit, clicking on the "edit" under the question, if you think it’s really necessary).

  • Check out the <title> from this page to see how the tag is automatically embedded.

0

0

To make it easier, I believe it is better to use a plugin. I recommend the Theme My Login

Inside the plugin folder, there is a folder called templates, which you can freely modify the code without having to worry about creating some security flaw in your platform.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.