Support » Plugin: Permalink Manager Pro » Permalink

  • Resolved dddapple

    (@dddapple)


    Saved permalink reverting back to default URL.

    I noticed some of my old posts are revering back to default URL even though I have not done anything.

    Default URL: example.com/breadcrumb/post123
    Intended Permalink: example.com/post123

    I make sure the below is not checked:
    Permalink Manager can automatically update the custom permalink after post or term is saved/updated.
    If enabled, Permalink Manager will always force the default custom permalink format (based on current Permastructure settings).

    • This topic was modified 3 years, 6 months ago by dddapple.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dddapple

    (@dddapple)

    Ok I did some testing and it seems that the intented permalink will revert back to default url whenever I update the post from the front-end.

    I make sure the below is not checked:
    Permalink Manager can automatically update the custom permalink after post or term is saved/updated.
    If enabled, Permalink Manager will always force the default custom permalink format (based on current Permastructure settings).

    How do I make sure that the intended permalink sticks even after updating.

    I think it is also important to point out that it is a custom post type from mylisting theme.

    • This reply was modified 3 years, 6 months ago by dddapple.
    Plugin Author Maciej Bis

    (@mbis)

    Hi @dddapple,

    I apologize for the inconvenience! The problem is in one of PHP function that is used to generate the custom permalink after single listing is added via front-end. It is triggered also for existing listing, but the permalink should be generated only for new listings.

    I will fix this issue in the next release. Could you try to open:
    wp-content/plugins/permlaink-manager/includes/core/permalink-manager-third-parties.php file and replace the contents of line 879:

    if(!empty($permalink_manager_uris)) {

    with:

    if(!empty($permalink_manager_uris) && empty($permalink_manager_uris[$post_id])) {

    Best regards,
    Maciej

    Thread Starter dddapple

    (@dddapple)

    Thank you Maciej.

    Works like a charm!

    I copied and paste the code as instructed.

    • This reply was modified 3 years, 6 months ago by dddapple.
    Plugin Author Maciej Bis

    (@mbis)

    Hi @dddapple,

    Thank you for letting me know 🙂 Please let me know if you experience any further difficulty.

    Best regards,
    Maciej

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalink’ is closed to new replies.