• sboeck

    (@sboeck)


    hi there,
    i’m trying to exclude a certain categorie (‘artists’) from being displayed on my index.php site. my code currently looks like this:

    <?php if (have_posts()) : ?>
    <?php $i=0; ?>
    <h2>Most recent Releases</h2>

    <?php
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts(‘cat=-‘ . $blog_ID . ‘&paged=’.$paged );
    while (have_posts()) : the_post();$i++;?>

    how would i go about doing so? i’ve tried
    query_posts(‘cat=’-artists’), thinking it would do the right thing but that wasn’t the case…

    can anyone help with this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘excluding categories from homepage’ is closed to new replies.