• In my theme, when I restrict post thumbnails to posts, video embeds are not working (the link is not replaced by the preview) in pages, but they work in posts.
    add_theme_support( 'post-thumbnails', array( 'post' ) );

    I can easily fix that by adding support of post-thumbnails to all post types, but I wonder why there’s an issue like that.

    Any idea?

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ryan Hellyer

    (@ryanhellyer)

    Does this have something to do with the Unique Headers plugin? If so, in what way does it relate to the plugin and how can I assist?

    Thread Starter Benoit Chantre

    (@benoitchantre)

    Yes, it is related to the Unique Headers plugin: the issue happen only when it is activated under specific circumstances.

    At the moment, I have solved the issue by supporting post-thumbnails for all post types.

    I’ll need to make more tests to have a better understanding, but you should be able to reproduce the issue with the following steps:

    1. restrict post thumbnails support for posts add_theme_support( 'post-thumbnails', array( 'post' ) );
    2. add a YouTube link to a post (should display the video in the editor)
    3. add a YouTube link to a page (should display only the link)
    4. support post thumbnails for all post types add_theme_support( 'post-thumbnails' );
    5. now editor should display the video in the page
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with embeds when the theme doesn’t support post-thumbnails’ is closed to new replies.