treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Calling pages from wordpress

  • Hi,

    I am new to wordpress... I am trying to get a contact page going (I know there are plugin's /templates) I wanted to role my own to learn but I didn't see it to be a big pain. I have tried to just to the obvious and set a link in header.php to a PHP page I created. Had a problem finding the correct path. When I did get it to find the page my PHP code new nothing of Wordpress. I wanted to wrap my content with get_header() get_footer(). Anyway I said all that to ask this, what the best way to add forms on to wordpress?

    best,

    -dale
  • Sounds like you want to create a custom page template, and then create a "Contact" page and select the template from the pop up selector in your write panel..

    an example...


    <?php
    /*
    Template Name: Contact
    */
    ?>
    <?php get_header(); ?>

    // place your content here

    <?php get_sidebar(); ?> // if you need a sidebar on this page

    <?php get_footer(); ?>
  • Thanks for the information. That helped...
  • I would agree. let'us knoe if it don't work right,k ron
  • Wow That's cool! I feel like I have actually finally contributed something back to the community!

    :P