Oups, j'ai mal mis l'URL
La page testée est ici
http://www.vitaforma.fr/wptheme-fresh-v1.2/fresh/index.php
Cela met met l'erreur
Fatal error: Call to undefined function: get_header() in
/homepages/19/d232364964/htdocs/wptheme-fresh-v1.2
/fresh/index.php on line 1
Disons juste que je comprends rien à la structure de la page qui est:
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Thanks Kubrick for this code ?>
<?php if (is_category()) { ?>
<div class="page-title">
<h2 class="page-title-border"><?php _e('Archive for'); ?> <?php echo single_cat_title(); ?></h2>
</div>
<?php } elseif (is_day()) { ?>
<div class="page-title">
<h2 class="page-title-border"><?php _e('Archive for'); ?> <?php the_time('F j, Y'); ?></h2>
</div>
<?php } elseif (is_month()) { ?>
<div class="page-title">
<h2 class="page-title-border"><?php _e('Archive for'); ?> <?php the_time('F, Y'); ?></h2>
</div>
<?php } elseif (is_year()) { ?>
<div class="page-title">
<h2 class="page-title-border"><?php _e('Archive for'); ?> <?php the_time('Y'); ?></h2>
</div>
<?php } elseif (is_author()) { ?>
<div class="page-title">
<h2 class="page-title-border"><?php _e('Author Archive'); ?></h2>
</div>
<?php } elseif (is_search()) { ?>
<div class="page-title">
<h2 class="page-title-border"><?php _e('Search Results'); ?></h2>
</div>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="posttitle">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<p class="postmeta">
<span class="post-date"><?php the_time('j M, Y') ?></span>
<span class="post-comment"><?php comments_popup_link(__('No Comment'), __('1 Comment'), __('% Comments'), 'commentslink', __('Comments off')); ?></span>
<?php edit_post_link(__('Edit'), ' · ', ''); ?>
</p>
<div class="postentry">
<?php if (is_search()) { ?>
<?php the_excerpt() ?>
<?php } else { ?>
<?php the_content(__('Read the rest of this entry »')); ?>
<?php } ?>
</div>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<?php endwhile; ?>
<div class="pages">
<div class="pages-border"></div>
<span class="page-previous"><?php next_posts_link('« Older Entries'); ?></span>
<span class="page-next"><?php previous_posts_link('Newer Entries »'); ?></span>
</div>
<?php else : ?>
<div class="post">
<h2><?php _e('Error 404 - Not Found'); ?></h2>
</div>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Cordialement