• Hi all,

    I’m new to the forum, but I see that there is alot of help available.

    I’ll try and describe my problem as best that I can.

    I’ve a website set up for a scouting organisation, I created it using HTML and PHP and I use wordpress for the news section of the site. So wordpress is really only secondary.

    I have installed the user-submitted-posts plugin, so that I can submit posts to wordpress from the login section of my primary site. This is done by having this open as a new page.

    Heres the code on the submit posts page

    <?php
    define('WP_USE_THEMES',false);
    
    require('../wp/wp-blog-header.php');
    
    if(function_exists('public_submission_form'))
    public_submission_form(true);
    
    ?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    
    	"https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <link href="user-submitted-posts.css" rel="stylesheet" type="text/css" media="all" />
    <script src="nicEdit.js" type="text/javascript"></script>
    <script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
    
    </head>
    <body>
    
    <a href="../wp/wp-admin/index.php" target="_blank"> Edit / Delete posts</a>
    
    </body>
    </html>

    This works fine the way it is, I have no issues with this.

    But instead of opening up alot on new windows I’ve decided to load the external pages into an iframe on my admin page whenever a link has been clicked.

    Whenever I login to the admin page and click on all the different links then all the pages will load in turn into the Iframe, including the submit posts page, however if I load another page into the iframe then try and load the submit posts page again, it doesnt display.

    I’ve tried a number of different solutions all of which have been unsuccessful.

    I put the following metadata onto the submit posts page

    <meta http-equiv="expires" value="Thu, 16 Mar 2000 11:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />

    which didn’t work, but if i put this information above the <?php tag then the form will load, but then the submission of the form fails as it says “Cannot modify headers”

    So my next attempt was to edit the header.php file for my wordpress theme and add in the metadata but this has had no effect.

    If anybody has any ideas of how to solve this I would be very grateful.

    Thanks

  • The topic ‘Problem with page refresh (cached page)’ is closed to new replies.