I have an iframe on sidebar.php, and WordPress php code inside of it does not seem to work. The code looks something like this:
<?php $blog_title = esc_attr( get_bloginfo( 'name', 'display' ) ); $words = split(' ', $blog_title); $actor_name = ucwords($words . ' ' . $words); ?> <li><a href="http://www.domain.com/pics/<?=str_replace(' ', '+', $actor_name)?>" target="_blank"><?=$actor_name?> pic search</a></li>
Is WordPress php code inside an iframe suppose to work with other code outside of this iframe? It looks like it doesnt… Is there any way to get it to work?
- The topic ‘WordPress php code in an iframe doesnt work’ is closed to new replies.