PHP error on my index page.
-
My site is working but it won’t pull in my posts. This is the error I am receiving:
Warning: include(/home/content/68/7313068/html/wp-content/themes/BLANK-Theme/inc/meta.php) [function.include]: failed to open stream: No such file or directory in /home/content/68/7313068/html/wp-content/themes/BLANK-Theme/index.php on line 7
Warning: include() [function.include]: Failed opening ‘/home/content/68/7313068/html/wp-content/themes/BLANK-Theme/inc/meta.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/content/68/7313068/html/wp-content/themes/BLANK-Theme/index.php on line 7
And this is the code on my index.php file (I have bolded the line in question):
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<?php include (TEMPLATEPATH . ‘/inc/meta.php’ ); ?>
<div class=”meta”>
Posted on: <?php the_time(‘F jS, Y’) ?>
by <?php the_author() ?>
<?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’, ‘comments-link’, ”); ?>
</div><div class=”entry”>
<?php the_content(); ?>
</div><div class=”postmetadata”>
<?php the_tags(‘Tags: ‘, ‘, ‘, ‘
‘); ?>
Posted in <?php the_category(‘, ‘) ?> |
<?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>
</div></div>
<?php endwhile; ?>
<?php include (TEMPLATEPATH . ‘/inc/nav.php’ ); ?>
<?php else : ?>
<h2>Not Found</h2>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Please help me!!!
- The topic ‘PHP error on my index page.’ is closed to new replies.