Support » Themes and Templates » Implemented themes: individual page content disappears.

  • I recently implemented WordPress themes for my site, which had plenty of static content (not created through WordPress) beforehand. I can get my index.php page — which is in a different directory than my /wordpress files, by the way — to display perfectly well.

    But when I try to use the get_header(); and get_footer(); functions (written with the proper enclosing brackets in my coding) in any other pages, I end up with the following error:

    Fatal error: Call to undefined function: get_header() in /home/thoughtf/public_html/magelet/index.php on line 1

    For now, I have my header and footers called directly (I.E. php include(“/home/thoughtf/public_html/wordpress/wp-content/themes/tomorrow/header.php”); ) on all of my content pages, but instead of displaying the content of each individual page, the main blog displays.

    In my current theme directory, I have a header.php, footer.php, style.css, comments.php, and index.php. In my index.php file, the header is called through php get_header(); at the beginning and the footer is called through php get_footer(); at the end. In between those elements is the snippet of code that calls the WP blog.

    Does anyone know what the problem might be? I hope I’ve been clear enough in explaining; I don’t fully understand all of it, myself.

    Thanks in advance for any help or suggestions given.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Implemented themes: individual page content disappears.’ is closed to new replies.