Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @pratham2003 sorry but doesn’t get what was the issue you were pointing to.

    Hi Sami,
    I have an issue with the url_to_postid function too.
    In wordpress the function get_item( $request ) from /wp-includes/class-wp-oembed-controller.php use the url_to_postid function. After I enabled the Custom Permalinks plugin and set a custom permalink for a page the get_item function return 0 for that page because the url_to_postid does not work with the custom permalink.

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @radukong

    Thanks for sharing the details.

    I’ll check and will fixed it out if the issue is really there and i am able fix do that ??

    Thanks,
    Sami

    jeffreychingnl

    (@jeffreychingnl)

    Confirming this. I have issues with the oembed links in the header becoming 404 since they only work with the original permalink and not with the custom permalinks as they are considered redirects. Not sure if this is even possible to fix from your end.

    <link rel="alternate" type="application/json+oembed" href="https://website.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwebsite.com/new-slug" />
    <link rel="alternate" type="text/xml+oembed" href="https://website.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwebsite.com/new-slug&format=xml" />

    The above will not work but the use with the old names does.

    <link rel="alternate" type="application/json+oembed" href="https://website.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwebsite.com/old-slug" />
    <link rel="alternate" type="text/xml+oembed" href="https://website.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwebsite.com/old-slug&format=xml" />
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘url_to_postid support’ is closed to new replies.