<ul class="post-list2"> <?php global $query_string; query_posts($query_string . '&ignore_sticky_posts=0'); // 不起作用 ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php if (!is_home() || is_home() && !is_sticky()) { ?> <?php $imageUrl = getImageByPost($post); $loadingImage = get_lazyload_image(); ?> <li class="post-item"> <a href="<?php the_permalink(); ?> "> <div class="post-image-box"> <?php if (get_option('close_lazy')) { ?> <img class="post-image" src="<?php echo $imageUrl; ?> " alt="<?php
<div class="content-main"> <div class="main"> <div class="error404"> <p class="state-code">404</p> <p class="tip-text">您的页面找不到了</p> <ul class="recommend"> <h3>文章推荐</h3> <?php $post_num = 10; // 设置调用条数 $args = array('post_password' => '', 'post_status' => 'publish', 'caller_get_posts' => 1, 'orderby' => 'comment_count', 'posts_per_page' => 8); $query_posts = new WP_Query(); $query_posts->query($args); while ($query_posts->have_posts()) { $query_posts->the_post(); $image = getImageByPost($post); ?> <li class="post"> <img class="post-image" src="<?php echo $image; ?> " alt="一套完整的安卓开发推荐方案" title="一套完整的安卓开发推荐方案"/> <a class="post-title" href="<?php the_permalink(); ?> "><?php the_title(); ?> </a> </li> <?php