iframe issue
Hiya all,
New here but have been using h5p a while. I've (finally) found where to get the h5p iframe html for each content item I create rather than the short code eg:
<iframe src="https://mywebsite.com/wp-admin/admin-ajax.php?action=h5p_embed&id=191" width="959" height="179" frameborder="0" allowfullscreen="allowfullscreen" title="content title name"></iframe><script src="https://mywebsite.com/wp-content/plugins/h5p/h5p-php-library/js/h5p-resi..." charset="UTF-8"></script>
However when I add this into a gutenberg HTML block it shows a light grey clock with h5p in white on it and black text saying "content unavailable". Does anyone have any hints as to what I might be doing wrong??? Ido know that the embed Id number is correct and exists.
MANY thanks for any ideas or suggestions
otacke
Tue, 01/13/2026 - 09:46
Permalink
Sounds as if embedding was
Sounds as if embedding was disabled in general or for that content in particular. But I don't rule out that the Gutenberg editor creates extra issues. Also, I think in the latest version of WordPress, the handling of admin-ajax.php was changed, might also be a cause.
Helriv
Tue, 01/13/2026 - 23:56
Permalink
Thanks so much for the
Thanks so much for the response.
I had assumed (perhaps unfairly) that the issue was with h5p iframes purely because I´m able to embed an iframe from another site without issues. I´m embedding into a fluentcommunity course. It seems to allow embedding into community posts but not into courses sadly. The posts aren´t created using Gutenberg whereas the course content is, so that may well be the issue for h5p iframes. Ugh.
Any workarounds you can think of?
So far, my only workaround idea is to add the h5p shortcode to an elementor page along with a back button to the course page, then create a button on the course content page leading to the page with the shortcode on. It seems rather faffy though and not ideal.
otacke
Wed, 01/14/2026 - 00:30
Permalink
Sorry, but I am not too much
Sorry, but I am not too much into either the Gutenberg editor (never use it, but instead use the classic editor) or elementor. Maybe someone else from the community can help you.