Title: Query Posts Plugin Customization
Last modified: August 19, 2016

---

# Query Posts Plugin Customization

 *  [jon1938](https://wordpress.org/support/users/jon1938/)
 * (@jon1938)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/query-posts-plugin-customization/)
 * Hello:
 * I’m very new at this. Could anyone point me to a tutorial or something that explains
   how to go about creating a more customized posts by category list? I would like
   to be able to have a small thumbnail image with just the title to the right of
   the image (centered vertically).
 * By default the Query Posts widget just dumps the post information into the widget
   area (if you select it to display content or summary). I would like to be able
   to customize this in the css file, but I can’t figure out what classes/styles
   to add.
 * I guess what I need to know is: where in the queryposts.php file are the corresponding
   classes/styles for me to add to my css file? Could someone point them out?

Viewing 1 replies (of 1 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/query-posts-plugin-customization/#post-1297530)
 * Or use something like this in the appropriate template (e.g. sidebar.php0 that
   you can easier hack
 *     ```
       <?php
           $args=array(
             'cat' => 6,
             'showposts'=>5,
             'caller_get_posts'=>1
           );
           $my_query = new WP_Query($args);
           if( $my_query->have_posts() ) {
             echo '5 recent 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;
           } //if ($my_query)
         wp_reset_query();  // Restore global post data stomped by the_post().
       ?>
       ```
   
 * Related:
    [Function_Reference/get_children](http://codex.wordpress.org/Function_Reference/get_children)
   [CSS](http://codex.wordpress.org/CSS) [Stepping Into Template Tags](http://codex.wordpress.org/Stepping_Into_Template_Tags)
   [Stepping Into Templates](http://codex.wordpress.org/Stepping_Into_Templates)
   [Template Hierarchy](http://codex.wordpress.org/Template_Hierarchy) [query_posts()](http://codex.wordpress.org/Template_Tags/query_posts)

Viewing 1 replies (of 1 total)

The topic ‘Query Posts Plugin Customization’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/query-posts-plugin-customization/#post-1297530)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
