WordPress.org

Ready to get started?Download WordPress

Forums

iframe problem (1 post)

  1. serkmutlu
    Member
    Posted 6 years ago #

    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.

    Help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags