WordPress.org

Ready to get started?Download WordPress

Forums

Exclude article from a category in "recent news" (1 post)

  1. Airic
    Member
    Posted 2 years ago #

    Hello,

    Here is my recent news code:

    <h5 class="recentnews">Derniers articles</h5>

    <ul >
    <?php

    /* Do not display stick posts */
    query_posts(array('showposts' => get_option('gp_featured_articles'), 'post__not_in' => get_option('sticky_posts'), 'caller_get_posts' => 1, 'category_id' => 1)); ?>

    <?php while (have_posts()) : the_post(); ?>

  2. <div class="thumbnail-small"><?php the_post_thumbnail(); ?></div>
    <span class="title">" title="<?php the_title(); ?>"><?php the_title(); ?></span>
    <span class="meta"><?php the_time('l j F, Y'); ?></span>
  3. <?php endwhile; ?>

    </div>
    <!-- // Recent News -->

    I am trying to find a way to exclude all article from a categorie having n°=817 with no success...

    If someone could help...

    Thanks a lot

    Eric

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.