0

I am creating a plugin that collects user information. It's a bunch of forms.

So, the user will hit the first form page, enter data, then be redirected to the second form page, where they enter more data. There's 3 forms, and a "Thank You" page at the end.

Each of the 4 pages must use the same theme that is current installed on the users Wordpress. So each page has the standard header, footer etc. If the user changes their theme, the form pages included with my plugin will be consistent with the users theme.

So if the user visits: http://example.com/wp-content/plugins/my_plugin/includes/page1.php it will show my form page that looks consistent with the rest of their site. I obviously create a rewrite rule to these scripts, but the above URL was to demonstrate what I mean.

How do I do this? By page, I mean a standard HTML/PHP page, not the Wordpress definition of a page.

  • Please elaborate your question. Question is too confusing. – Nilambar Jun 2 '15 at 8:40
  • Ok give me a moment – BugHunterUK Jun 2 '15 at 8:43
  • 1
    There is no way your form will ever be styling compatiple will all themes as you can never know which styling methods and selectors is used by a theme – Pieter Goosen Jun 2 '15 at 8:47
  • @PieterGoosen if that's not possible what other solutions are? I've edited my question to give a bit more detail. – BugHunterUK Jun 2 '15 at 8:53
  • Do not create a page yourself, create a shortcode which the user can then add into a page which he will create. – Pieter Goosen Jun 2 '15 at 8:56

Your Answer

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

Browse other questions tagged or ask your own question.