Vergezogt
Member
Posted 2 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!
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
Vergezogt
Member
Posted 2 years ago #
Thanks! is it possible to get variables through $_GET etc?
and pass them through with searchobject.php?object=1 etc ?
Yup.
You know WordPress has it's own built-in search?
Vergezogt
Member
Posted 2 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?
Yep, sure. A custom template is just a php page with access to the wordpress loop, vars etc
Vergezogt
Member
Posted 2 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.