Index.php not working properly
-
I am helping my brother to maintain his WP blog. My PHP knowledge is mediocre.
The index.php file of the theme we are using all of a sudden displays a Not Found message. All of the individual articles and static pages work fine.
The index.php file has not been touched, so it has to do with something else. The index.php contain an if/else and for some reason it goes straight to else.
I don’t even know where to begin looking and was hoping some of you would be willing to suggest possible points of attack.
Here is the index.php:
<?php get_header(); ?>
<div id=”primary” class=”looped”>
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<div class=”entry hentry” id=”post-<?php the_ID(); ?>”>
<h2 class=”entry-title”>” rel=”bookmark” title=”Permanenter Link zu <?php the_title(); ?>”><?php the_title(); ?></h2>
<div class=”entry-byline”>
<span class=”entry-date”><abbr class=”updated” title=”<?php the_time(‘Y-m-dTH:i:sO’); ?>”><?php the_time(‘j. M Y’); ?></abbr></span>
<address class=”author vcard”><?php _e(‘von ‘); ?>“><?php the_author(); ?>. </address>
<?php comments_popup_link(‘Kommentieren Sie diesen Artikel!’, ‘1 Kommentar’, ‘% Kommentare’, ‘Kommentar-link’, ‘Kommentare sind nicht erlaubt’); ?>
<?php edit_post_link(‘Edit’, ‘[‘, ‘]’); ?>
</div><div class=”entry-content”>
<?php the_excerpt(‘Lesen Sie weiter →’); ?>
“>Weiter …
<?php wp_link_pages(‘before=<p>‘ . __(‘Seiten:’) . ‘&after=</p>’); ?>
<div class=”clear”></div>
</div><p class=”entry-meta”><span class=”entry-categories”><?php _e(‘Kategorie: ‘); ?><?php the_category(‘, ‘); ?>.</span>
<?php if(function_exists(‘the_tags’)) { ?>
<span class=”entry-tags”><?php the_tags(‘Tagged: ‘,’ · ‘,’
‘); ?></span>
<?php } ?></p>
</div><!–.entry–><?php endwhile; ?>
<?php include (TEMPLATEPATH . ‘/navigation.php’); ?>
<?php else : ?>
<div class=”entry”>
<h2 class=”entry-title”><?php _e(‘Nicht gefunden’); ?></h2>
<div class=”entry-content”>
<p>Es tut uns leid, aber das nachdem Sie suchen gibt es hier nicht.</p>
<?php include (TEMPLATEPATH . “/searchform.php”); ?>
</div>
</div><?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘Index.php not working properly’ is closed to new replies.