• Hi,

    I use EO SearchTerms Tagging 2 v 1.52 with wordpress v3.0.5

    When i use the shortcode :

    <?php if(function_exists('stt_terms_list')) echo stt_terms_list() ;?>

    It display wrong keywords (display keywords related to another post) but if i enable to add automatic list after post content it show the right keywords !

    (excuse my little english)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Commentguerir

    (@dudd)

    edit : curious ! i use this code to display similaires post by tag :

    <?php
    //for use in the loop, list 5 post titles related to first tag on current post
    $tags = wp_get_post_tags($post->ID);
    if ($tags) {
    
      $first_tag = $tags[0]->term_id;
      $args=array(
        'tag__in' => array($first_tag),
        'post__not_in' => array($post->ID),
        'showposts'=>10,
        'caller_get_posts'=>1
       );
      $my_query = new WP_Query($args);
      if( $my_query->have_posts() ) {
      echo '<div class="lire_aussi"><h5>Articles similaires</h5><ul>';
        while ($my_query->have_posts()) : $my_query->the_post(); ?>
          <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
          <?php
        endwhile;
    	echo '</ul></div>';
      }
    
    }
    
    ?>

    so if i add the shortcode before this code it display the correct keywords, but if i add it after the code it display wrong keywords !

    Thread Starter Commentguerir

    (@dudd)

    resolved by using this code :

    https://wordpress.pastebin.com/uKDWTwkN

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: SEO SearchTerms Tagging 2] Wrong keywords !’ is closed to new replies.