• Current implementation doesn’t affect the output of the_permalink()/get_permalink(), wherever Loop or similar approach is used to output an item’s permalink.

    Instead, WP-provided URLs are printed and redirect happens to the permalink crated with ‘Custom permalinks’ plugin, when link is loaded.

    This is inconvenient, since it never prints the item actual URL and wastes time on redirects. I would like to ask to implement ‘the_permalink’ filter within the plugin, so that it would alter the output of the above standard functions without using ugly workarounds.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dan

    (@birmingham)

    This sounds very similar to my request: when a slug is modified use the native wordpress slug modification functions and only force an override in cases where the native response is unsuccessful (adds “-2” or otherwise changes the attempted slug edit)

    If you can do this, it would be a perfect plugin with huge advantage and no drawback. But currently the shutting down of the native behaviour for all posts and pages irrespective of where it may be sufficient is a huge drawback. It doesn’t do this on categories though – it has a separate slug input box! We need something like that for posts and pages.

    • This reply was modified 8 years, 4 months ago by Dan.
    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @temmokan, First of all i apology you for the late reply as i was busy so, didn’t get a time to reply back to you. Secondly, Thanks for your suggestion. I need some more clarification in it.

    When you call get_permalink()/the_permalink() it returns you the Permalink which is created by the plugin instead of WP. When you hit the WP plugin manually, so it shows redirects you to the correct page(URL which is created by the plugin). This is happen to stop the pages to throw 404.

    Are you seeing something else or may i getting you wrong? Please let me know your thoughts in some elaborated way.

    Thanks,
    Sami

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suggestion: implement ‘the_permalink’ filter to output actual permalink’ is closed to new replies.