WordPress.org

Ready to get started?Download WordPress

Forums

Integrate page into theme (3 posts)

  1. carnold
    Member
    Posted 8 years ago #

    OK, i am running WP 2.0.2 on linux with full access to the server (i own this server). Site is at http://www.mytimewithgod.net (please don't complain about a horizontal scroll bar). If you will click on "Bible" at the top of the page, then, in the search field, type "romans" (without the quotes) and click "search". You will see the results page. Notice how it IS NOT intergrated with my theme (modified blix)? My question is, how do i make this page intergrate with my site theme?
    I have taken snippets of WP code (like <?php require_once get_template_directory() ."/BX_functions.php"; ?> and <?php get_sidebar(); ?>)and inserted them into the "search.php" file and receive this error:
    Fatal error: Call to undefined function: get_template_directory() in /srv/www/htdocs/wp-includes/search.php on line 2
    The "Bible" is in its own directory root/kjvdict/ind files for all books and chapters. The search.php file is in a WP directory but i can not get it to intergrate into the theme. Can anyone point me in the right direction? Many thanks.

  2. Michael_
    Member
    Posted 8 years ago #

    Check this:
    http://www.mytimewithgod.net/?s=romans

    That is the usual URL which is used for searches, and you get the results inside your theme when using it.

    It seems to me that your search form is not correct, I would compare it with the search form of the default theme.

  3. carnold
    Member
    Posted 8 years ago #

    The site search, i can not make it search through a directory of files (which is where the Bible is). I did try to use parts of the site search in the search.php (Bible search) but that did not work either. I do know a little about programming and a call to a undefined function error is telling me that that Bible search.php file has not had get_header/footer defined. Can anyone else help?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.