Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you mean in a loop? Or on a sidebar?

    Thread Starter tokyosama

    (@tokyosama)

    loop i guest

    Do you have access to the template files?

    <?php
    $args = array(
    	category_name => "PUT CATEGORY NAME HERE",
    	order => ASC,
    	orderby => 'title'
    );
    
    // the query
    $the_query = new WP_Query( $args );??>
    
    <?php if ( $the_query->have_posts() )?:??>
    
      <!-- pagination here -->
    
      <!-- the loop -->
    	<ul>
      <?php while ( $the_query->have_posts() )?: $the_query->the_post();??>
        <li><a href="<?php the_permalink(); ?>"><?php the_title();??></a></li>
      <?php endwhile;??>
      </ul>
      <!-- end of the loop -->
    
      <!-- pagination here -->
    
      <?php wp_reset_postdata();??>
    
    <?php else: ??>
      <p><?php _e( 'Sorry, no posts matched your criteria.' );??></p>
    <?php endif;??>

    You will want to put that into the page template where you want it to display. Presently, all it will do is show you a bullet point list of linked posts in a single category that you specify.

    I hope this helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘category post list’ is closed to new replies.