[WP.org] comment affichager des posts en entier à partir des archives

  • Avatar de Inconnu

    Bonjour, je viens d’ouvrir mon blog, j’ai utilisé le thème fifty fifth street que j’ai légèrement modifié (affichage slidebar à droite putôt qu’à gauche et d’autres minibidouilles), par contre lors d’une recherche dans les archives et dans les catégories, les résultats n’affichent que le titre en lien (avec la date), et étant donné que mon blog sera principalement axé sur la photo, j’aurai aimé que les posts puissent s’afficher en entier. Auriez-vous une idée?
    S’agit-il de cette ligne qui doit être modifiée?
    <h2 id= »post-<?php the_ID(); ?> »> » rel= »bookmark » title= »Permanent Link to <?php the_title_attribute(); ?> »><?php the_title(); ?></h2>

    J’ai ça comme code en entier pour « archive.php » :

    <?php get_header(); ?>

    <div id= »content »>

    <?php if (have_posts()) : ?>

    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h1 class= »pagetitle »>Archive for the ‘<?php single_cat_title(); ?>’ Category</h1>
    <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    <h1 class= »pagetitle »>Posts Tagged ‘<?php single_tag_title(); ?>’</h1>
    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h1 class= »pagetitle »>Archive for <?php the_time(‘F jS, Y’); ?></h1>
    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h1 class= »pagetitle »>Archive for <?php the_time(‘F, Y’); ?></h1>
    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h1 class= »pagetitle »>Archive for <?php the_time(‘Y’); ?></h1>
    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h1 class= »pagetitle »>Author Archive</h1>
    <?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
    <h1 class= »pagetitle »>Blog Archives</h1>
    <?php } ?>

    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?>>

    <small class= »caps »><?php the_time(‘F j, Y’) ?></small>
    <?php comments_popup_link(‘0’, ‘1’, ‘%’, ‘bubble’, ‘Off’); ?>

    <h2 id= »post-<?php the_ID(); ?> »> » rel= »bookmark » title= »Permanent Link to <?php the_title_attribute(); ?> »><?php the_title(); ?></h2>
    <small>By <?php the_author_posts_link(); ?> in <?php the_category(‘, ‘) ?></small>

    <div class= »entry »>
    <?php the_excerpt() ?>
    <?php the_tags( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <div class= »navigation »>
    <div class= »alignleft »><?php next_posts_link(‘Older Entries’) ?></div>
    <div class= »alignright »><?php previous_posts_link(‘Newer Entries’) ?></div>
    </div>

    <?php else :

    if ( is_category() ) { // If this is a category archive
    printf(« <h1 class=’center’>Sorry, but there aren’t any posts in the %s category yet.</h1> », single_cat_title( »,false));
    } else if ( is_date() ) { // If this is a date archive
    echo(« <h1>Sorry, but there aren’t any posts with this date.</h1> »);
    } else if ( is_author() ) { // If this is a category archive
    $userdata = get_userdatabylogin(get_query_var(‘author_name’));
    printf(« <h1 class=’center’>Sorry, but there aren’t any posts by %s yet.</h1> », $userdata->display_name);
    } else {
    echo(« <h1 class=’center’>No posts found.</h1> »);
    }
    get_search_form();

    endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    Merci pour votre aide
    Mathieu

    L’adresse du blog concerné est (visible uniquement pour les utilisateurs connectés).

  • Avatar de Inconnu

    Le blog spécifié à http://www.mathieunoir.com n’est pas hébergé sur WordPress.com.

    Ce forum est destiné aux blogs hébergés par WordPress.com.

    Si votre question porte sur un blog WordPress auto-hébergé,
    il convient de vous adresser au support WordPress.org.

    Pour en savoir plus sur les différences, consultez ce lien.

    Si vous désirez poursuivre, merci d’inclure à votre réponse
    l’adresse de votre blog WordPress.com.

    Ceci est un message automatisé. Merci de votre visite.

  • Le sujet ‘[WP.org] comment affichager des posts en entier à partir des archives’ est fermé aux nouvelles réponses.