• Resolved nikhil710

    (@nikhil710)


    Hi @mbis,

    After updating permalink manager plugin to version 2.4.1.5, I’m unable to get post ID from url_to_postid($url) function, and this is happening for Custom post types only, otherwise its working fine for post type POST and post type PAGE.

    It returns 0 after update for Custom post types pages, Please look into it and let me know if i’m doing anything wrong here

    The page I need help with: [log in to see the link]

Viewing 16 replies (of 16 total)
  • Thread Starter nikhil710

    (@nikhil710)

    Hi @mbis,
    Thanks for the response, I understand your stance on modifying the specific function within the plugin. I was just curious to know if i could proceed with the temporary code changes i made in that ‘custom_scripts_enqueue‘ function in order to deal with url_to_postid($url) function if it doesn’t return post ID of CPTs pages and thinking of undoing it after the update but i dont see this happening now. So, I’m gonna find proper workaround in the function. Thanks for your understanding and support.

Viewing 16 replies (of 16 total)
  • The topic ‘unable to get post ID for CPTs using url_to_postid’ is closed to new replies.