诚聘英才
您当前位置 :首页 > 诚聘英才 >
$category_id, // 分类ID 'posts_per_page' => $pageSize, // 每页显示的文章数量 'paged' => $paged ); // 查询文章 $query = new WP_Query($args); if ($query->have_posts()) { if($cat_id == 40){ echo '
    '; } if($cat_id == 41){ echo '
      '; } while ($query->have_posts()) { $query->the_post(); // 在这里编写你的文章列表 $post_id = get_the_ID(); // 获取文章ID $excerpt = get_the_excerpt(); // 获取摘要 $content = get_the_content(); // 文字内容 // 招聘信息 if($cat_id == 40){ ?>
    '; // 分页导航 lingfeng_pagenavi(); } else { // 没有找到文章的提示 echo '没有找到文章。'; } // 重置WordPress查询 wp_reset_postdata(); ?>