Title: Query posts
Last modified: August 19, 2016

---

# Query posts

 *  Resolved [fkaf](https://wordpress.org/support/users/fkaf/)
 * (@fkaf)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/query-posts-7/)
 * I don`t understand
    My widget doesn`t look like this [Picture here](http://s.wordpress.org/extend/plugins/query-posts/screenshot-1.png?r=295005)
 * I can`t figure out how to list posttitles from a category in the sidebar?? i 
   had it before, but suddenly it was changed??
 * It doesn`t have posttype and so on

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [fkaf](https://wordpress.org/support/users/fkaf/)
 * (@fkaf)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/query-posts-7/#post-1698214)
 * Could anyone post a screen image so that I can see what the widget is supposed
   to look like? my have changed look.
 * All I need is a set of links for posts of a certain categori in the sidebar
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/query-posts-7/#post-1698215)
 * Consider downloading and installing [Otto’s PHP Code Widget](http://wordpress.org/extend/plugins/php-code-widget/),
   then something like this code in one of those widgets:
 *     ```
       <?php
       $cat_id = get_cat_ID('yourcategory');
       $args=array(
         'cat' => $cat_id,
         'post_type' => 'post',
         'post_status' => 'publish',
         'posts_per_page' => 5,
         'caller_get_posts'=> 1
       );
       $my_query = null;
       $my_query = new WP_Query($args);
       if( $my_query->have_posts() ) {
         while ($my_query->have_posts()) : $my_query->the_post(); ?>
           <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
           <?php
         endwhile;
       }
       wp_reset_query();  // Restore global post data stomped by the_post().
       ?>
       ```
   
 *  Thread Starter [fkaf](https://wordpress.org/support/users/fkaf/)
 * (@fkaf)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/query-posts-7/#post-1698216)
 * Yes, but there was a widget which did this without any code.
    And listed the 
   posts in the sidebar. What was that widget? I thought it was query posts but 
   if I use that more than just a link appears
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/query-posts-7/#post-1698217)
 * Well here’s a list that might help:
    * [http://wordpress.org/extend/plugins/query-posts/](http://wordpress.org/extend/plugins/query-posts/)*
   [http://wordpress.org/extend/plugins/wordpress-loop/](http://wordpress.org/extend/plugins/wordpress-loop/)*
   [http://wordpress.org/extend/plugins/category-posts/](http://wordpress.org/extend/plugins/category-posts/)*
   [http://wordpress.org/extend/plugins/list-category/](http://wordpress.org/extend/plugins/list-category/)*
   [http://wordpress.org/extend/plugins/bns-featured-category/](http://wordpress.org/extend/plugins/bns-featured-category/)
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/query-posts-7/#post-1698218)
 * how many times do you plan on posting this?
    dupes deleted and 1 had a good answer
   for you
 *  Thread Starter [fkaf](https://wordpress.org/support/users/fkaf/)
 * (@fkaf)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/query-posts-7/#post-1698220)
 * Sorry
    Category posts plugin did it! Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Query posts’ is closed to new replies.

 * 6 replies
 * 3 participants
 * Last reply from: [fkaf](https://wordpress.org/support/users/fkaf/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/query-posts-7/#post-1698220)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
