Forums

How to allow quotes (") or %22 in post slugs (4 posts)

  1. gallamine
    Member
    Posted 1 year ago #

    I'm migrating a Joomla site to Wordpress. Many of my old posts have quotes (or %22) in the post slug . How can I modify WP to allow these?

    I've tried adding a "%22" directly into the post slug form. It goes into the database fine, but when I actually try and click on the link from the index page, I get a 404 error.

    I'm having a hard time tracking down where the translation from URLS to database queries happens for posts. I'm assuming that's where I'd have to make the change, as there is probably some stripping going on.

  2. gallamine
    Member
    Posted 1 year ago #

    Does anyone have any thoughts on how I can allow quotes or %22 in the post slugs (post_name)? It goes into the database correctly, but when WP tries to render the page, I get a 404 error.

  3. scribblerguy
    Member
    Posted 1 year ago #

    I was looking at WP's Trac and noticed a ticket that seems to be right on point. See WordPress Trac Ticket #3329. Hope that helps.

  4. gallamine
    Member
    Posted 1 year ago #

    Thanks! I think that's just the information I was looking for. I'll start digging into it.

Topic Closed

This topic has been closed to new replies.

About this Topic