简体   繁体   English

页面仅加载页面的一半

[英]Page loads only half of the page

I don't really know what happened here but the php code is somewhat faulty. 我真的不知道这里发生了什么,但是php代码有些错误。 This page has 5 webinars in it: http://veteducation.com.au/webinar/ 此页面有5个在线讲座: 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. 问题是,第一次加载时仅显示一个网络研讨会,但刷新时会显示其他4个网络研讨会。

Why is my page loading 1 webinar only on first time load and 4 webinar when refreshed? 为什么我的页面仅在首次加载时加载1个网络研讨会,而在刷新时却加载4个网络研讨会? I want to see the 5 webinar on the first time load. 我想在第一次加载时看到5场网络研讨会。

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. 我将其加载到IE,Chrome和Opera中,但它们全部显示了全部5。听起来您的浏览器正在积极地缓存加载了1个在线讲座的版本,然后在您按刷新时才实际加载页面。

Try clearing your browser cache or load it in a fresh browser (Chrome's incognito mode is great for this). 尝试清除浏览器缓存或将其加载到新的浏览器中(Chrome的隐身模式非常适合此操作)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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