• Hi,
    My permalink structure is /%post_id%/%post_name%/

    Links in the rss feed point to something like …

    https://www.mydomain.com/1234/%post_name%

    … where The 1234 is the correct post id, but %post_name% is actually in the URL. For example <a href="http:/www.mydomain.com/2454/%post_name%/">Continue reading <span class="meta-nav">→</span></a>

    Not sure how to fix it. Any ideas?

    Cheers,
    P

Viewing 2 replies - 1 through 2 (of 2 total)
  • try removing the ending “/” and the “_” between post and name

    /%category%/%postname% works fine. So try like that structure.

    Thread Starter pnaj

    (@pnaj)

    Hi there.

    Thank you very much indeed – I hadn’t noticed I was using the wrong permalink tag (%post_name% instead of %postname%).

    Crazy that the site (still in dev at the moment) worked fine with the wrong tag – except for links inside the feeds.

    Still one thing I don’t understand, though. Using my (uncorrected) permalink and now the corrected one, links on the site *do not* actually show the post_id portion, whereas links in the feed do.

    Eg
    web link: http:/www.mydomain.com/about/
    rss link: http:/www.mydomain.com/1234/about/

    Both actually display the same page.

    Since these refer to pages, rather than posts, I would prefer the cut-down version in the feeds as well.

    Any ideas how I might fix this?

    P.

    PS. Just for others having a similar problem though, having fixed the permalink the feed itself didn’t change. I have to update each page manually before the feed gets the change.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘All links inside rss feeds are broken’ is closed to new replies.