The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Simple Code Help needed (2 posts)

  1. Klark0
    Posted 7 years ago #

    I'm trying to display all entries posted on the current day from one particular category only.

    Here's what I've found. What do I need to add so that it only shows posts from the cat=id that i specify ? Thanks.

    <?php $today = getdate(); query_posts ('year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"] ); ?>
      <?php while (have_posts()) : the_post(); ?>
        <!-- STUFF HERE -->
      <?php endwhile;?>
  2. CD30
    Posted 7 years ago #

    query_posts($query_string . 'category_name=Shows&year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"] );

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.