Le plugin WP Post Ratings affiche l’excerpt à l’appel de la fonction (Créer un compte)

  • Statut : non résolu
2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #515416
    TGM
    Membre
    Padawan WordPress
    53 contributions

    Bonjour,

    Petit souci d’affichage avec le plugin WP PostsRatings. Il est bien appelé par le morceau de code demandé après installation mais sur la page il m’affiche la description de mon article. J’ai beau avoir regardé un peu partout dans les fichiers liés au plugin et à l’affichage de l’article, pas moyen de trouver d’ou viens l’erreur.

    Je vous colle ci joint le code du fichier single-tutoriaux.php affichant l’article et le morceau de code qui permet d’afficher WP PostRating.

    <?php get_header(); ?> 

    <article_tutos>
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div class="avatar_tl"><?php echo get_avatar( get_the_author_meta('ID'), 48 ); ?></div>
    <header class="tuto_entry_header">
    <h1 class="entry-title"><?php the_title(); ?></h1>

    <div class="entry-meta">
    <span class="timestamp"><a>Il y a <?php echo human_time_diff(get_the_time('U'), current_time('timestamp')); ?></a></span>
    </div><!-- .entry-meta -->
    </header>

    <div class="entry-content-tutos">
    <?php the_content(); ?>
    </div><!-- .entry-content -->

    <footer class="entry-meta_single">
    <div class="post_likes_tl">
    <span class="post_likes"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></span>
    </div>
    <div class="tnw_count">
    <?php if(function_exists('render_tnwsc_button')) {echo render_tnwsc_button();} ?>
    </div>
    <div class="nav_articles">
    <div class="prev"><?php previous_post_link('%link','<img class="previous" src="/wp-content/themes/toolbox/images/previous.png"/>‘); ?></div>
    <div class="next"><?php next_post_link('%link','<img class="next" src="/wp-content/themes/toolbox/images/next.png"/>‘); ?></div>
    </div>
    <span class="edit_button"><?php edit_post_link( __( 'Editer', 'toolbox' ), '<span class="edit-link">‘, ‘</span>‘ ); ?></span>
    </footer><!-- .entry-meta -->

    </article_tutos>
    <section class="description_tuto">
    <h1 class="description_tuto_title">Description de la vidéo</h1>
    <?php the_excerpt(); ?>
    </section>
    <section class="comments_tuto">
    <h1 class="comments_tuto_title">Commentaires</h1>
    <?php comments_template( '', true ); ?>
    </section>
    <?php endwhile; // end of the loop. ?>
    <?php get_template_part( 'side_tuto' ); ?>
    <?php get_footer(); ?>

    Merci d’avance à celui ou celle qui trouvera la solution !

    #857658
    TGM
    Membre
    Padawan WordPress
    53 contributions

    Je fais remonter le topic car je n’ai trouvé pour le moment aucune solution…

2 sujets de 1 à 2 (sur un total de 2)
  • Vous devez être connecté pour répondre à ce sujet.