Advertisement
tdevine33

$query_string Wordpress issue

May 9th, 2011
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php if(is_tag()) { ?>
  2. <?php
  3. global $query_string;
  4. query_posts( $query_string . '&cat=27' );
  5. while(have_posts()) : the_post();
  6.     echo '<div class="indent"><div class="title"><a href="';
  7.     echo get_post_meta($post->ID, 'link', true);
  8.     echo '" target="_blank" title="Link to ';
  9.     the_title();
  10.     echo '"><img src="';
  11.     echo get_post_meta($post->ID, 'thumbnail', true);
  12.     echo '" class="thumbnail" alt="Thumbnail of ';
  13.     the_title();
  14.     echo '" width="120" height="160" /></a><h2><a href="';
  15.     echo get_post_meta($post->ID, 'link', true);
  16.     echo '" rel="bookmark" title="Link to ';
  17.     echo the_title_attribute();
  18.     echo '">';
  19.     the_title();
  20.     echo '</a></h2></div></div>';
  21. endwhile; ?>
  22. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement