如何做淘客網(wǎng)站源碼河北百度推廣seo
wordpress在調(diào)用分類下文章時(shí),有時(shí)需要排除調(diào)用某個(gè)分類的文章,下面的這段代碼,就可以輕松實(shí)現(xiàn)不調(diào)用特定ID的分類內(nèi)容。
<?phpquery_posts("showposts=10&cat=-1"); //cat=-1為排除ID為1的分類下文章while(have_posts()) : the_post(); ?><li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li><?php endwhile; ?>
原文
https://www.zhanyes.com/code/6280.html?