Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <li id="recent-posts" class="widget">
- <h4>Latest Business</h4>
- <ul>
- <?php $tag_title = single_tag_title('',false);
- query_posts('showposts=10&cat=-1'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <li>
- <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - <?php echo $tag_title; ?> <?php
- foreach((get_the_category()) as $cat) {echo $cat->cat_name . ' ';} ?>
- <?php if( get_post_meta($post->ID, "phone1", true) ): ?>
- <br />Phone: <?php echo get_post_meta($post->ID, "phone1", $single = true); ?>
- <?php else: ?>
- <?php endif; ?>
- </li>
- <?php endwhile; wp_reset_query(); ?>
- </ul>
- </li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement