WordPress.org

Ready to get started?Download WordPress

Forums

Change Permalink Structure (1 post)

  1. john
    Member
    Posted 6 months ago #

    Permalink Structure- %postname%-%custom_field_value%-test.html

    I have generated this %custom_field_value%

    Current URL Structure -

    http://www.mysitename.com/post-name-custom-value-test.html

    My query is that if i have two words in my custom value [john-smith]
    it redirects me to page not found OR if it is [john] it is going well.

    e.g.-
    With Custom value [john-smith] URL [Not working]

    http://www.mysitename.com/post-name-john-smith.test.html [Not working]
    Goes to page not found page

    With Custom value [john] URL [working]

    http://www.mysitename.com/post-name-john-test.html [working]

    and i know that not working case is why because wordpress treating my custom field value as post name because i have attached there it with a hyphen.

    if you have any suggestion or idea to fix this share with me.

    help will be appreciated

    and thanks in advance.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.