Support » Fixing WordPress » Integrate page into theme

  • OK, i am running WP 2.0.2 on linux with full access to the server (i own this server). Site is at (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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check this:

    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.

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Integrate page into theme’ is closed to new replies.