WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding custom pages (7 posts)

  1. Vergezogt
    Member
    Posted 5 years ago #

    In the future i want to add my own pages as an addition of my wordpress installation.

    for example i want to add searchobject.php

    I've took index.php from the default template saved it as searchobject.php

    if i go to http://www.mydomain.com/searchobject.php it cant be found.

    How can i get this done?

    Thanks in advance!

  2. adamh
    Member
    Posted 5 years ago #

    You need to create the page as a custom template and then create a new page in wordpress and assign the template to it.

    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

  3. Vergezogt
    Member
    Posted 5 years ago #

    Thanks! is it possible to get variables through $_GET etc?

    and pass them through with searchobject.php?object=1 etc ?

  4. adamh
    Member
    Posted 5 years ago #

    Yup.

    You know WordPress has it's own built-in search?

  5. Vergezogt
    Member
    Posted 5 years ago #

    Yeah i do,

    What i want to do with the page is get data out of another database wich has information about objects (houses)
    Is that doable?

  6. adamh
    Member
    Posted 5 years ago #

    Yep, sure. A custom template is just a php page with access to the wordpress loop, vars etc

  7. Vergezogt
    Member
    Posted 4 years ago #

    During the weekend I searched some more and tested quite some plugins and possibilitys. It seems that I really need :
    http://wordpress.org/extend/plugins/exec-php/

    To make this work but i managed to pull it off.

Topic Closed

This topic has been closed to new replies.

About this Topic