# How to automatically adjust iframe height for embedded wordpress posts

**URL:** https://meta.discourse.org/t/how-to-automatically-adjust-iframe-height-for-embedded-wordpress-posts/127686
**Category:** WordPress
**Created:** [September 5, 2019, 1:06pm UTC](https://meta.discourse.org/t/how-to-automatically-adjust-iframe-height-for-embedded-wordpress-posts/127686 "2019-09-05T13:06:06Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)
#### Post date: [April 3, 2024, 5:52am UTC](https://meta.discourse.org/t/how-to-automatically-adjust-iframe-height-for-embedded-wordpress-posts/127686/14 "2024-04-03T05:52:02Z")

</div>

> [@angus](#):
>
> Why not?

I mean, maybe I could? I struggled to get an audio player to use mediaelement.js before on here, I think I don’t understand the plugin api very well. It just seems like a lotttttt of work that maybe I could do in the long run, but right now, it’s actually looking pretty good with the iframe embed. The main challenge would be searchability of the text that’s embedded in the iframe, but I was thinking to publish that text in the post and hide it or put it under an accordion, so it would still show up in searches.

Plus, I think the bigger problem is actually that so many of the HTML classes get stripped out when the content is cooked (or whatever the lingo is lol), and so just simply trying to publish the WordPress post here and using a similar CSS seems to require a lot of rewriting, which inspired me to write this:

> [@Companion Discourse plugin for Wordpress](https://meta.discourse.org/t/companion-discourse-plugin-for-wordpress/301265):
>
> Continuing the discussion from [Formatting](https://meta.discourse.org/t/formatting/301133/6): From what I know, Discourse has a WordPress plugin, but WordPress does not have a companion Discourse plugin for WordPress. What I mean by this is a plugin I can install on Discourse that will modify Discourse to better work with WordPress. I never thought it would be needed, and I don’t really know what features it would have, but one that popped out to me is to be able to identify WordPress HTML classes to be used in Discourse posts so that when the…

---

_[View the full topic](https://meta.discourse.org/t/how-to-automatically-adjust-iframe-height-for-embedded-wordpress-posts/127686)._
