1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Best way to implement PHP in a WP website?

Discussion in 'Black Hat SEO' started by Hytek, Jan 3, 2015.

  1. Hytek

    Hytek Registered Member

    Joined:
    Jul 21, 2013
    Messages:
    53
    Likes Received:
    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!
     
  2. yogyogi

    yogyogi Registered Member

    Joined:
    Nov 30, 2014
    Messages:
    53
    Likes Received:
    4
    Occupation:
    Website Developer in asp.net, wordpress and SEO
    Location:
    New York, USA
    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.
     
  3. FBGuru

    FBGuru Senior Member

    Joined:
    Sep 22, 2013
    Messages:
    928
    Likes Received:
    1,172
    Location:
    Personality Type : ESTP
    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
    
     
  4. AntiHacker

    AntiHacker Regular Member

    Joined:
    Dec 7, 2014
    Messages:
    343
    Likes Received:
    44
    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?
     
  5. FBGuru

    FBGuru Senior Member

    Joined:
    Sep 22, 2013
    Messages:
    928
    Likes Received:
    1,172
    Location:
    Personality Type : ESTP
    Install this plugin to run PHP scripts on Wordpress posts/pages.

    Code:
    https://wordpress.org/plugins/insert-php/
    
     
  6. Shwon

    Shwon Junior Member

    Joined:
    Jan 15, 2014
    Messages:
    103
    Likes Received:
    3
    Simply Install Plugin for Pages