• I embeded the WP posts in a page. there is 2 issues I can not figure them out.

    1. Why there is different layout from the same wp iframe embeded.
    2. The excerpt is the new part in embed, how can I remove it?

    I link wsthe screenshot from the web page with annotation about my question. Hope that will help!

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

    (@bcworkz)

    If you embed via an iframe that you’ve inserted into a page yourself, you get one kind of content determined by your theme’s templates. If you rely on oEmbed, which is what is used when you simply provide an URL on its own line or use an embed block, you get a different sort of content.

    oEmbed content can be altered through the ‘oembed_result’ filter.

    Thread Starter FREEZhao

    (@freezhao)

    I just copy the link to the post, Gutenberg coverted them automatically.
    I check all the code, they all use the “Embed” block, I tried to copy the link manually to the wp embeded block, the result is same.
    One post layout in left and right(row), others in the up and down(stack).

    Moderator bcworkz

    (@bcworkz)

    The embed’s internal iframe should have width and height attributes. These affect the embed content’s layout. Responsive themes alter layout based on width, narrower widths stack while wider widths might be in a row.

    Thread Starter FREEZhao

    (@freezhao)

    The posts I embeded have the same feature image ratio. But It’s show in different way. Is that the result from the theme’s templates?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Embed WP Post Layout Issue’ is closed to new replies.