Best way to implement PHP in a WP website?

Hytek

Registered Member
Joined
Jul 21, 2013
Messages
53
Reaction score
5
Basically I have a site that has multiple pages on it and each page has a basic layout.

Right now everything is static on each page, with the layout the same as well.

Looking to create a template for each peice of information on the site so I can easily create a new page, and have it populate information for each page from a database.

What would be the best way to go about doing this?

Thanks!
 
Basically I have a site that has multiple pages on it and each page has a basic layout.

Right now everything is static on each page, with the layout the same as well.

Looking to create a template for each peice of information on the site so I can easily create a new page, and have it populate information for each page from a database.

What would be the best way to go about doing this?

Thanks!
If your are still in the learning phase i would recommend you to use wordpress for quickly making your website dynamic. It is a very good CMS specially for people like you.
 
If your are still in the learning phase i would recommend you to use wordpress for quickly making your website dynamic. It is a very good CMS specially for people like you.

Dude! He's not asking your opinion to use wordpress or not. If you don't have a clue, it's better to close the tab than to write some random shit just to increase your post count.

OP, you can write a simple function with Wordpress Shortcode API and use WPDB class to connect to the database.

Code:
http://codex.wordpress.org/Shortcode_API
http://codex.wordpress.org/Class_Reference/wpdb
 
i don't want to open new thread,I have php fake voting poll,how to upload it on my wordpress website? Is there some plugin or what?
 
i don't want to open new thread,I have php fake voting poll,how to upload it on my wordpress website? Is there some plugin or what?

Install this plugin to run PHP scripts on Wordpress posts/pages.

Code:
https://wordpress.org/plugins/insert-php/
 
Back
Top