• Hi,

    I’m restyling a page and discovered that when I put a naked url in the text, without a link behind it, WordPress recognizes the url is of a blog post of mine and puts a preview blog on the page instead of just displaying the url as text.
    Why is that and how can I disable it?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    That must have been quite the surprise! It’s because WP sites are now (since 4.4) oEmbed providers. This means links to blog posts (including your own) work much like links to youtube and other oEmbed providers. The link gets automatically converted into the proper HTML to embed a video or other content.

    oEmbed links need to be on their own line in order to be recognized. If you can compose your links so they are not on their own it should prevent oEmbed discovery. Just putting an HTML entity like   in front should prevent discovery.

    If you hate the entire oEmbed Provider thing, install the Disable Embeds plugin.

    Thread Starter Wonderful Wanderings

    (@wonderful-wanderings)

    Hah, I had no idea! Must have been the first time I put a naked url on its own line. Thanks for bringing me up to date, appreciate it 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Naked url in text creates blog post preview, why?’ is closed to new replies.