WordPress.org

Ready to get started?Download WordPress

Forums

Implemented themes: individual page content disappears. (4 posts)

  1. Rita
    Member
    Posted 8 years ago #

    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.

  2. oriecat
    Member
    Posted 8 years ago #

    Are you including the require wp-blog-header part?

  3. Rita
    Member
    Posted 8 years ago #

    Yes, it's included in the header.php file.

  4. Well if you're getting that error, you didn't include the file right.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags