SHOW:
|
|
- or go back to the newest paste.
1 | <li id="recent-posts" class="widget"> | |
2 | <h4>Latest Business</h4> | |
3 | <ul> | |
4 | - | <?php query_posts('showposts=10&cat=-1'); ?> |
4 | + | <?php $tag_title = single_tag_title('',false); |
5 | query_posts('showposts=10&cat=-1'); ?> | |
6 | <?php while (have_posts()) : the_post(); ?> | |
7 | - | <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - <?php single_tag_title(''); ?> <?php |
7 | + | |
8 | <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - <?php echo $tag_title; ?> <?php | |
9 | foreach((get_the_category()) as $cat) {echo $cat->cat_name . ' ';} ?> | |
10 | <?php if( get_post_meta($post->ID, "phone1", true) ): ?> | |
11 | <br />Phone: <?php echo get_post_meta($post->ID, "phone1", $single = true); ?> | |
12 | <?php else: ?> | |
13 | <?php endif; ?> | |
14 | - | <?php endwhile;?> |
14 | + | |
15 | <?php endwhile; wp_reset_query(); ?> | |
16 | </ul> | |
17 | </li> |