WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Posts in 1 permalink (7 posts)

  1. hhpov
    Member
    Posted 2 years ago #

    I downloaded some plugins that helped with some permalink issues but heres a problem im having .

    1. I create a page with and I give the page the permalink /new/
    2. I make a post and assign the permalink as /new/ and it works
    3. I make a second post and assign the permalink as /new/ and it only shows the first post.
    4. I want when the user clicks the page 'new' they will see all the posts assigned to /new/ in descending order.

    How can I do this?

  2. I would first of all get rid of the plugins.. I don't think that these are needed.

    I would then create a category called new and then assign posts to that category.

    When people visit the category new, they will see all posts in that category.

    Otherwise, posts CANNOT have the same permalinks.

  3. hhpov
    Member
    Posted 2 years ago #

    The posts I have are assigned to the proper categories but this is the problem that happens.

    Posts that are mywebsite.com/new/1, mywebsite.com/new/2 work

    but mywebsite.com/new/ does not show EITHER of these posts.

    If I change the permalinks of both posts to mywebsite.com/new/ ONLY 1 post is shown.

  4. I'm not sure I fully understand. Please provide a link to your site so that we can look at it.

  5. justingreerbbi
    Member
    Posted 2 years ago #

    Pluggins can be a pain sometimes but if you usethe right one it is not a big deal. The loop is relativly easy to use on just a post or page. If not search for a pluggin called custom post type list shortcode. I update regualarly and support it fully. Just some input from a developers point of view

  6. justingreerbbi
    Member
    Posted 2 years ago #

    The problem is morethan likely in you loop code.

  7. Knut Sparhell
    Member
    Posted 2 years ago #

    @hhpov: Christine is perfectly right.

    Two posts cannot have the same permalink! But a permalink may point to a category or tag.

    You cannot change the permalink a posts to be the same as another one, even if you think you are doing just that. WordPress will not allow it and add a trailing number to the latest slug.

    If you have two posts in the same category, this category slug is new, and the category base is cat, then mywebsite.com/cat/new will show those two posts. Same principle for tags.

    Another approach could be a single page that just displays two posts. This can be done by a special page template or by shortcodes provided by a plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.