• Resolved gurov87

    (@gurov87)


    Hi, first of all thanks for the great plugin! It works for me, but sometimes I have 404 error or redirect to other page when view a post. I edited permalinks by base editor and got the permalink to my CPT like this ‘www.example.com/custom-term/custom-post-type-slug’. As I see all custom links are written to ‘wp_options’ in ‘permalink-manager-uris’. The problem is that when you delete the post the record with id and permalink not deleted, and if you will add a new post with the same slug you’ll get several records with the same slug but different id. When I cleared the ‘permalink-manager-uris’ field in DB and regenerated Plugin Slugs & Bases (Full URIs) my problem was solved. Maybe you need some functions which allows to delete the record with slug and ID when you delete the post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi gurov87,

    yes, thank you for noticing that! You are right and unfortunately I missed this issue before – I will prepare a hotfix with 0.4.9 version this week.

    Best regards,
    Maciej

    Plugin Author Maciej Bis

    (@mbis)

    Hi again,

    the hook for the posts moved to the trash is added in 0.4.9 version. Now, after any post is removed its URI will be removed from the options array automatically.

    Thread Starter gurov87

    (@gurov87)

    Great! And thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘404 or redirect to other page’ is closed to new replies.