0

i don't know this topic might covered else where. but i am trying to find step by step simply tutorial. to make a plugin where i can add a new page to site. and in that page i put some form. and only registered user can access that.

i managed to make plugin at admin side. but not able to find the tutorial to make a form at front end of website. for registered user only.

please give me some link for it.

my core issues are

  1. how can i display custom coded php form in only one page in front end.
  2. how can i make that page ristricted for registered user only.
  3. how can i customize the login/registration form to add custom fields without using any plugin.

Thanks in advance.

  • Thank you Bainternet, it was really great answer straight for the question to the solution. with appropriate example links. it helped me a lot to make confirm, that the solution i am thinking is right. – user7299 Jul 25 '11 at 6:12
2

how can i display custom coded php form in only one page in front end?

The best way to go would be to create a custom page template then create a page inside WordPress admin and select your newly created template for that page.

how can i make that page ristricted for registered user only?

Normally I would go with my plugin User Specific Content but since you are looking for a solution without a plugin then you can use the is_user_logged_in() function in your custom template page to check if the user is logged in or not.

how can i customize the login/registration form to add custom fields without using any plugin?

take a look at this nice tutorial

-1

Adding a shortcode for your form is also an option: http://codex.wordpress.org/Shortcode_API

  • Not really addresses the question in hand – Bainternet Jul 22 '11 at 15:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.