I inserted an iframe in my Main Index Template. It’s working well, except that when I try to insert a query posts PHP code in that iframe, the wordpress doesn’t accept the code.
So I have to change the content of that frame manually, which is really boring.
The code that I try to insert is that:
<?php query_posts(“cat=79&order=DESC&showposts=1”); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php endwhile; ?>
<?php endif; ?>
Normally, it’s working very well on normal Template tags (sidebar, Main index, cats etc….); but not with the iframe.php file that I created.
- The topic ‘iframe problem’ is closed to new replies.