Yoast SEO
SEO caused PHP category LOOP Query to stop working i.e. $query_string . '&cat=* (1 post)

  1. Damien15
    Posted 3 years ago #

    I integrated wordpress into my website by using pho framework to list all articles within a set category

    <?php query_posts($query_string . '&cat=3'); ?>

    the whole code was

    <?php query_posts($query_string . '&cat=3'); ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
     <div class="post">
     <!-- Display the Title as a link to the Post's permalink. -->
     <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
     <!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->
     <small>Posted <?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>
      <div class="entry">
        <?php the_content(); ?>
     </div> <!-- closes the first div box -->
     <?php endwhile; else: ?>
     <p>Sorry, no posts matched your criteria.</p>
     <?php endif; ?>

    this no longer works, I have tried replace the number with the catagory name used by the SEO but that does not work either.

    Please help




Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic