Forums

how to call a specific category (2 posts)

  1. faustina
    Member
    Posted 2 years ago #

    Hello! I need to make this code call category id 18 instead of all posts like it currently does. I don't know much about the code in this particular line and am not sure what needs changing. Any help is appreciated.

    <?php $arc_query = new WP_Query('orderby=post_date&order=DESC&showposts=-1'); ?> <?php while ($arc_query->have_posts()) : $arc_query->the_post(); ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php echo $post->post_content; ?></a>

  2. faustina
    Member
    Posted 2 years ago #

    I just noticed that I posted this in "requests and feedback" - sorry.

    [moved to How-To - mod]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags