afficher le résumé d’un article avec une image

  • Avatar de Inconnu

    Bonjour,
    Je tourne sur un theme Berita en 2.9.1 plugin cforms

    Je veux afficher des articles en résumé selon une catégorie sur ma page d’accueil mais voila ça ne marche pas !
    Mon code :

    <?php query_posts(‘category_name=index’); ?>
    <div id= »content »>
    <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
    <div class= »post »>
    <h2> » title= »<?php the_title(); ?> »><?php the_title(); ?></h2>
    <div class= »post_content »>
    <?php the_content(‘<div align= »right »><b>Lire la suite…</b></div>’); ?>
    </div>
    </div>
    <?php endwhile; ?>
    <?php endif; ?>

    Mon article est bien coupé avec <!–more–>( je verifie le html) mais mon article apparait en entier. J’ai verifier dans –> réglages—>lecture et j’ai coché ‘L’extrait’
    Avec la fonction the excerpt il me fait le résumé mais je n’ai pas l’image qui s’affiche !!!!
    Je cale depuis 3 jours le dessus …
    Merci de votre aide
    Yan

  • Avatar de Inconnu

    En créant cette entrée, vous n’avez pas spécifié une adresse de blog ou de raison de publier.

    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.

  • Avatar de Inconnu

    yflossy, votre blog est WordPress.ORG, pas WordPress.COM. Plus d’informations ici: https://fr.forums.wordpress.com/topic/wordpresscom-ou-wordpressorg

  • Le sujet ‘afficher le résumé d’un article avec une image’ est fermé aux nouvelles réponses.