• Resolved jpm1234

    (@jpm1234)


    After upgrading to WP 4.4 all my links to pages with the paramter “?embed=true” are displaying as oEmbed style page fragments.

    I am using WordPress 4.x as a regular website and had a listing page of posts to display in an iframe.

    Links from within that iframe listing to posts (with some page elements hidden) were constructed in the following format:
    http://www.site.com/mydir/postname/?embed=true

    Previously I added the “embed” parameter in a query_vars filter in my functions.php for the page to be able to access the ’embed’ parameter.
    add_filter('query_vars','add_myqueryvars');

    After activating this disable-embeds plugin, the oEmbed output it still shown.

    How can I prevent the oEmbed ‘feature’ from hijacking the “?embed=true” parameter?

    Thanks.

    https://wordpress.org/plugins/disable-embeds/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Hey there

    This is not really the right place to ask this, as it’s not related to the Disabled Embeds plugin, but WordPress itself.

    The WordPress embeds feature relies heavily on the embed query var (the “?embed=true” parameter) and support for that is tightly coupled to the WP_Query class. This query var should not be used by plugins or themes so I highly recommend you to avoid that and use a different query var.

    As you can see on this page, embed is a reserved term in WordPress.

    Thread Starter jpm1234

    (@jpm1234)

    Hi Pascal,

    I did just end up changing the parameter name.

    The problem with that reserved terms page is that it keeps changing 🙂
    Back to April 2015 “embed” was not a reserved term..

    https://web.archive.org/web/20150403231410/http://codex.wordpress.org/Reserved_Terms

    It would have been nice for the WP_Query class to use wpembed as a query var or something more wordpress specific to avoid conflicts but I suppose someone else could have been using that beforehand as well :\

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using embed parameter after installing plugin not working’ is closed to new replies.