Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134867

iRule81 on "Exclude posts from certain categories in latest posts"

$
0
0

Hi everybody,
I've got the following code

<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('posts_per_page=4&paged=' . $paged); ?>
<?php if (have_posts()) : while(have_posts()) : the_post(); ?>

used to display latest posts from all categories on my blog.
Does anyone know what I should do to exclude two or more categories (let's say with ID 260 and ID 320) from showing their posts on the page?


Viewing all articles
Browse latest Browse all 134867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>