Support » Fixing WordPress » Permalinks not linking correctly

  • Hi Peeps

    I have set up a blog here on a site I am redesigning…

    I have created a specific category to use as a news section and am only pulling in blog articles from blog categories using:

    <?php query_posts(‘cat=1,3,4&showposts=5’); ?>

    However, when I click the links on the individual blog posts on the index page to take me to the articles page, they are not displaying the corresponding article… for example: … clicking “Your Day Your Way – Inspirational Weddings” links to the news article “Marvelous Midge” (

    I am also having a problem with the permalinks, and have tried displaying a custom permalink structure:


    But … on saving this, clicking an article leads me to the internally, rewritten URL but is a Not Found 404 error page so I have reverted it.

    Sorry, two problems there, but am really struggling to figure it out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    <?php query_posts('cat=1,3,4&showposts=5'); ?>

    Where exactly is this code at? What file in the theme? What is the content of the single.php file?

    Basically, we need to know what queries you are doing where.

    Why cant i pose more than a few lines of code??


    <div id="center_content">
    <?php query_posts('cat=1,3,4&showposts=5'); ?>

    Will post in seperate posts, that code is here in index.php in my own custom theme:
    <?php query_posts(‘cat=1,3,4&showposts=5’); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalinks not linking correctly’ is closed to new replies.