Advertisement
Guest User

single tag title won't display in sidebar?

a guest
Feb 10th, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <li id="recent-posts" class="widget">
  2. <h4>Latest Business</h4>
  3. <ul>
  4. <?php query_posts('showposts=10&cat=-1'); ?>
  5. <?php while (have_posts()) : the_post(); ?>
  6. <li>
  7. <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - <?php single_tag_title(''); ?> <?php
  8. foreach((get_the_category()) as $cat) {echo $cat->cat_name . ' ';} ?>      
  9. <?php if( get_post_meta($post->ID, "phone1", true) ): ?>           
  10. <br />Phone: <?php echo get_post_meta($post->ID, "phone1", $single = true); ?>
  11. <?php else: ?>
  12. <?php endif; ?>
  13. </li>
  14. <?php endwhile;?>
  15. </ul>
  16.         </li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement