I have a wordpress blog, with an iframe included in sidebar.php. I have some wordpress specific code inside of this iframe, and it does not seem to "interact" with the rest of the wordpress code. Is it normal? Is there any way to get around this one? <ul><li><a href="http://www.domain.com/" target="_blank">domain.com</a></li><?php $blog_title = esc_attr( get_bloginfo( 'name', 'display' ) );$words = split(' ', $blog_title);$actor_name = ucwords($words[0] . ' ' . $words[1]); ?><li><a href="http://www.name.com/pictures/<?=str_replace(' ', '+', $actor_name)?>" target="_blank"><?=$actor_name?> Model Search</a></li></ul> Thank you.
I get what your saying... but I/we don't know what the problem is? For one I wouldn't display it as an iFrame Show us the full code from <iframe that your using and someone will post an alternative script.
Does this help? Change target="_blank"> to target="_top"> Then when a link is clicked inside the iframe it will break the frame
My thoughts on that too.... this is 2013 not 1997, you shouldn't be using iframe, target, etc, etc... PARTICULARLY if you want something inside said 'frame' to 'break out' of it.