标签 wp函数 下的文章

WordPress中获取最新文章的代码剖析

<?php query_posts('showposts=6&cat=-10'); ?> <?php while (have_posts()) : the_post();?> <h3 class="am-alert am-yellow"><span class="am-badge am-badge-danger am-radius">HOT</span> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'liftoff' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"> <?php the_title(); ?> </a></h3> ...