• 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)
  • 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
    CSS
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy
    query_posts()

Viewing 1 replies (of 1 total)
  • The topic ‘Query Posts Plugin Customization’ is closed to new replies.