0

I apologize in advance, for what even I realize may be stupid question.

But I never worked with wordpress before, so what I want to do is create new page, have some custom HTML form in it, post the data to somewhere and then save it to database.

Can someone please point me to good tutorial about this? When I google I google anything post related, I mainly get results about.

I have no idea where to begin looking.
Do I need to develop functionality like that with plugin?
Some other way?

2
  • You want to create a page which asks the site visitor some questions and store that data to db? If so, how are you planning to access that data? Also from WP admin? Commented Apr 15, 2016 at 19:48
  • Sorry, I upvoted both, but was not sure which to accept as I found both useful :) Thanks for you help! :) Commented Apr 19, 2016 at 21:23

2 Answers 2

2

Welcome to wordpress world… Yes you can use templates … but also:

Custom posts, will you give all the freedom to do what you want:
Custom post generator.
Post types (on Wordpress Codex)

Extend your posts types with Custom fields
Adding custom fields
• Use the powerful ACF plugin

Is better to work on a child theme.
Child Themes (on Wordpress Codex)

Why? Because when your theme is updated, you don't loose your code.

Once you have created and activated your child theme, you can:

  • Add your code to the function.php file (in your child theme)

  • Work and modifie the php files of your theme (copying them to the child theme), without loosing anything when theme get updated.

  • Create and add some custom php files like templates…

  • Work with custom post, custom fields

Wordpress is very modular and open, so there is many ways to achieve a project.

You can also create your own theme, or you can use some scalable and modular frameworks (Genesis Framework…)

Sign up to request clarification or add additional context in comments.

Comments

1

All what you need to do is to make cusotm wordpress page template. In template you can insert any code you want and then just pick this template in page editor.

You can easly create custom page template in 4 steps

  1. Go to your wordpress installation via FTP
  2. Go to wp-content/themes/ and duplicate page.php file or any other page template file
  3. Rename new file and add "template" key-word. For example: page-template-mytemplate.php . Remmember also to change template name inside particular file ( check out tutorials posted below or Documentation )
  4. Create page and select your new Template from Template block

Hope that helps.

Here you have some links:
Wordpress.org Documentation
Detailed guide about wordpress custom page templates
Some YT vid

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.