[Solved] How to display post names by News category [closed]


Try This.

  <?php

       $args = array('cat' => 5);  //pass news category Id.

        // The Query
        query_posts( $args );

        // The Loop
        while ( have_posts() ) : the_post();
            echo '<li>';
            the_title();
            echo '</li>';
        endwhile;

        // Reset Query
        wp_reset_query();
?>

4

solved How to display post names by News category [closed]