Support » Plugin: Longer Permalinks » Deactivate plugin only for new posts

  • Resolved elfigos

    (@elfigos)


    Hello, how can I keep the plugin enabled for older posts and url working but disable and prevent from saving new posts url?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author antithesisgr

    (@antithesisgr)

    Hi,

    well if you use short permalinks the plugin will not really do something special for all your new posts, but will keep working on old.
    What exactly are you trying to achieve?

    Thank you.

    Thread Starter elfigos

    (@elfigos)

    I noticed that longer permalinks are saved on post meta database table

    Plugin Author antithesisgr

    (@antithesisgr)

    We use postmeta to keep a copy of each post slug, because WordPress on major upgrades (when a WP Database upgrade happens) is always reverting the database field back to the default length and all long slugs are lost.
    By keeping them in postmeta, we are able to “restore” the long slugs after such an upgrade.
    On each WordPress upgrade, all slugs are reverted (since the database field length is reverted), so they are indeed needed in order to keep your long slugs after major upgrades.

    Thank you.

    Thread Starter elfigos

    (@elfigos)

    Thanks I got it, what I mean is can I stop future posts saving slug in postmeta?

    Plugin Author antithesisgr

    (@antithesisgr)

    No, this is not possible, since this is vital for the plugin to operate (because of the reasons I wrote above).

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deactivate plugin only for new posts’ is closed to new replies.