WordPress.org

Support

Support » How-To and Troubleshooting » Permalinks not linking correctly

Permalinks not linking correctly

  • Hi Peeps

    I have set up a blog here on a site I am redesigning… http://www.moments.org.uk/blog/

    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:

    http://www.moments.org.uk/blog/ … clicking “Your Day Your Way – Inspirational Weddings” links to the news article “Marvelous Midge” (http://www.moments.org.uk/blog/?p=5)

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

    /%post_id%/%post_name%

    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)
  • Samuel Wood (Otto)
    WordPress.org Tech Dude

    @otto42

    <?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??

    Index.php

    <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.