Jump to content
Server Maintenance This Week. ×

Using FX.php and PHP pages with WordPress


This topic is 3525 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi there,

 

We are building our new website in WordPress and looking for a simplest way to integrate our PHP driven form pages. I know there are various plugins around:
 

http://wordpress.org/support/topic/using-php-in-wordpress

https://wordpress.org/plugins/insert-php/

http://stackoverflow.com/questions/2810124/how-to-add-a-php-page-to-wordpress

 

If anyone else has gone through this process Id love to know how you did it.

 

Kind regards.

Steven

Link to comment
Share on other sites

I don't see why there would be a problem integrating Wordpress with your php driven pages.  Wordpress is written in php and you can fully customize it.  You can integrate it with FMP custom web publishing.   Within wordpress you can create custom "templates" whereby you can write whatever php scripting you wish to access your FM database or the MySQL database.

Link to comment
Share on other sites

This is close to what you would do but not quite: Each theme in Wordpress has a bunch of php pages and other content that make up the theme. After you've chosen your wordpress theme, what you would do is create one or more custom php pages which includes your FX php and form code, along with any wordpress built-in functions you may choose to include. What you are actually doing is EXPANDING on the existing them, whereby these new custom pages will be accessable within wordpress.  
 
Once you've uploaded them, you can see your php pages, which Wordpress calls "templates" within the wordpress dashboard.  
 
After choosing your theme, you would do this: 
 
Step 1.  Make a custom php page with your FM.php and form code that you want included in your Wordpress site. This will make up the body section of a wordpress page.
Step 2.  Upload the new php page to the theme folder. (located inside the wp-content folder on the web server. 
Step 3.  You should see your new php page, your "template" within these locations in Wordpress:
 
Appearance  --->  editor  (you can see and edit the code of any php page)
Pages --->  Add New ----> Templates  (used to make a wordpress page)
 
When making a new page in wordpress, you always choose a template. After uploading, your new custom page will show up in the template section along with other templates that came with the theme.  When you choose your custom php as your template for a new page, then that page will be a part of the wordpress site and should still have full functionality.
Link to comment
Share on other sites

This topic is 3525 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.