• I have several recipe WordPress sites. I want to use a MySQL / Php page to display recipes from the database into the normal look and feel (and yes ads) without creating html pages and linking them. My PHP code creates a table that is used to interact with the database and display results. In html, all I do is past the code into a page with header/footers and it is done. I tried that with Word press and all I get is the code.

    How can I get this to work?

Viewing 1 replies (of 1 total)
  • you would need to make a page template.

    You can make a copy of your page.php file in your theme, delet the loop, and replace it with your php (or keep the loop in, and add your php code, if you want to be able to add content using the normal page editor

    to make a page template, just make that copy of page.php, rename it to whatever you want, whatever.php and add a template header

    <?php
    /*
    Template Name: Whatever
    */
    ?>

    Once the template is made, make a new page through wordpress the normal way, and assign the template to it from the editor…the option is over on the right of the editor

Viewing 1 replies (of 1 total)
  • The topic ‘Add a php page to blog’ is closed to new replies.