• As the subject line says,

    I created a PermaLinks structure – /%category%/%postname%/ and it seemed to work fine.

    The links updated, clicking on the categories in the category listing displayed the relevant posts but when I click on a post title to go to that individual post I get the message: “Sorry, no posts matched your criteria.”

    Anyone any ideas on why this might be?

    Thanks,

    Tom

Viewing 6 replies - 16 through 21 (of 21 total)
  • Has this issue with the %category% been resolved? Has anyone been able to get it to work with results such as

    example.com/fruit/apples/story-about-johnny-appleseed

    example.com/vegetables/talk-about-your-carrots

    example.com/vegetables/tomatoes/tomato-vegetable-or-fruit

    YET?

    Okay, bigger problems. After much debate, I finally turned on permalinks and gave the /%category%/%postname% a try.

    Works fine on individual posts – totally borks on categories.

    I have my core categories set with category-1.php, category-2.php and so on, and all of them get the famous 404 and no style sheet view. Icky!

    I took away the %category% so the permalink read only /%postname% and it again worked okay on individual posts but totally borked on categories.

    I’ve now, once again, turned off permalinks in disgust. Yes, I have Apache 1.3 that causes these problems. Yes, I tried Boren’s plugin for this. Nada. Still no workie. My lovely host says, in politically correct terms “our development staff works around the clock to service your needs, but we cannot give a fixed date and time as to when we may get around to really doing something nice for you like upgrading your server to something that doesn’t screw you over.”

    Anyone had any luck with this at all?

    Hi, I’ve got a similar problem, but my site doesn’t use %category% in the permalink structure.

    I’ve just upgraded from 1.2 to 1.5. I was using permalinks this way:

    structure: /archivos/%year%/%postname%/
    category base : /archivos/categoria

    which works fine in WP1.2. After upgrading, posts listings (i.e. when viewing posts within a particular category) show the title of the posts but clicking on them, in order to read the whole entry, causes a “sorry, no posts matched your criteria”. I’ve deleted .htaccess and rebuild it but It doesn’t work.

    Since this discussion relates tom_raftery’s troubles to the use of %category% I’ve become confused because I’ve got the same problem, but I don’t use %category% ??

    I’ve disabled permalinks.
    Thanks in advance

    Well, that’s weird: In my case, permalinks work with all categories except one!

    It seems that WP considers there is no post at the given permalink:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    [the loop]

    so it skips to:
    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    and the “Sorry, no posts match your criteria” message appears.
    Any idea, please?

    Definitely there’s something wrong with one category. When listing the posts within it, a piece of text (–>) appears below every excerpt, as you can see in this screenhoot:
    https://www.pix8.net/pro/pic/19982rvZN/397179.jpg

    Demo: https://pop-page.com/index.php?cat=3 (and click on any of the posts’ title)

    but displaying any other category (in which permalinks work fine) that piece of text doesn’t appear:
    https://www.pix8.net/pro/pic/19982rvZN/397181.jpg

    Demo: https://pop-page.com/index.php?cat=4

    In both cases, posts listing are managed by this ‘archive’ template:

    <?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()) { ?>
    <h2 class="pagetitle">Art&iacute;culos de '<?php echo single_cat_title(); ?>'</h2>

    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2 class="pagetitle">Art&iacute;culos escritos en <?php the_time('F jS, Y'); ?></h2>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2 class="pagetitle">Art&iacute;culos escritos en <?php the_time('F, Y'); ?></h2>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2 class="pagetitle">Art&iacute;culos escritos en <?php the_time('Y'); ?></h2>

    <?php /* If this is a search */ } elseif (is_search()) { ?>
    <h2 class="pagetitle">Resultados de la b&uacute;squeda</h2>

    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2 class="pagetitle">Lista de art&iacute;culos de </h2>

    <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    <h2 class="pagetitle">Blog Archives</h2>

    <?php } ?>

    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Art&iacute;culos anteriores') ?></div>
    <div class="alignright"><?php posts_nav_link('','Siguientes art&iacute;culos &raquo;','') ?></div>
    </div>

    <?php while (have_posts()) : the_post(); ?>
    <div>
    <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Enlace permanente a <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php echo c2c_get_custom('publicado', '<div class="metagris">(', ')</div>', ''); ?>
    <?php echo c2c_get_custom('en', '<div class="metagris">(', ')</div>', ''); ?>
    <?php echo c2c_get_custom('Director', '<div class="metagris">', '</div>', ''); ?>

    <?php the_excerpt() ?>

    <p class="postmetadata">Escrito por <?php the_author_posts_link(); ?> <a href="<?php echo get_month_link('', ''); ?>"><img src="/imagenes/reloj.gif" alt="<?php the_time('l, F jS, Y') ?> a las <?php the_time() ?>" border="0" align="absmiddle" title="<?php the_date() ?> a las <?php the_time() ?>"/></a> en <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Editar','','<strong>|</strong>'); ?> <?php comments_popup_link('No hay comentarios »', '1 comentario »', '% Comentarios »'); ?>

    <!--
    <?php trackback_rdf(); ?>
    -->
    </div>

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Resultados anteriores') ?></div>
    <div class="alignright"><?php posts_nav_link('','Siguientes resultados &raquo;','') ?></div>
    </div>

    <?php else : ?>

    <h2 class="centrar">No se han encontrado resultados</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <?php endif; ?>

    Ok solved, thanks to the kind help of MCincubus at #wordpress. It was a problem with the “—” within the permalinks. Re-save posts solves the problem.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Permalinks give “Sorry, no posts matched your criteria”’ is closed to new replies.