简体   繁体   中英

Page loads only half of the page

I don't really know what happened here but the php code is somewhat faulty. This page has 5 webinars in it: http://veteducation.com.au/webinar/

The problem is only 1 webinar is shown on the first time load but when you refresh it, the other 4 webinar shows up.

Why is my page loading 1 webinar only on first time load and 4 webinar when refreshed? I want to see the 5 webinar on the first time load.

Please help me with this.

<?php
        $args = array( 'post_type' => 'webinars', 'orderby' => 'modified', 'posts_per_page'=>-1 );
        $loop = new WP_Query( $args );
        if ( $loop -> have_posts() ) : 
                while ( $loop -> have_posts() ) : $loop -> the_post(); ?>
                <?php include( TEMPLATEPATH."/"."includes/class.common.php" );
                $classObj = new Common_Class(); ?>

I loaded it up in IE, Chrome, and Opera but they all showed all 5. It sounds like your browser is aggressively caching a version with 1 webinar loaded and then actually loading the page when you press refresh.

Try clearing your browser cache or load it in a fresh browser (Chrome's incognito mode is great for this).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM