iframe content stripped out when full_text=”true”
-
I believe I am down to my last item for my aggregation project, which has come along a lot faster than I was expecting, thanks to your help. I’m working on sorting the last item out, but thought I’d ping you and see if you’ve seen this before.
First I do this(which is working great):
go to test pageThen when I arrive at that page, my content loads great, and I have modified the urls for all the aggregated data via views>post>thumbnail: starting at line 21:
$newUrl = ‘./full-page/?include_post=’.$the_post[‘ID’].’&thumbnail=true&size=800×540&full_text=true&show_author=true&list=1&column=1′;
if ( $the_post[‘post_type’] != ‘estore’ ) {
$html .= ‘‘ . get_thumbnail_by_blog( $the_post[‘blog_id’], $the_post[‘ID’], $size, $image_class, $column ) . ‘‘;When a user clicks on the aggregated data, the user is taken to the ‘full-page’ template, and all the data is displayed from the individual post that the user clicked.
In order to display the full post properly, inside of your plugin structure: views>post>content>Line Line 52: I’m doing:
if ( $full_text ) {
$text = apply_filters( ‘the_content’, $the_post[‘post_content’] );Which renders the content with its html tags(before that, I was getting raw text from the db).
However, the only hang up when I do this is that within the body content, all of the content renders perfectly, but the iframes are being stripped out, and instead of seeing the embedded content, WordPress tells me:
(Your browser doesn’t support iframe).
However, on my multisite blogs, embedded content works fine.
I plan on moving all the code I’ve modified into my theme’s functions, but for now, I’m extending your code.
Back to troubleshooting,
chipleh
The topic ‘iframe content stripped out when full_text=”true”’ is closed to new replies.