I've made a custom post type "brands". I have a custom template that display's these brands on this page: http://www.southernms.com/new/brands/
I also want these brands added to the homepage. So I am using a widget to show them on the homepage: http://www.southernms.com/new/
My problem is. On the brands page, you can see the logo's and nothing else. However on the homepage it shows the logo's yes, but at the bottom of the page it also shows the name of all the brands like they are posts. I am using the same code to display the brand logos in my custom template, as I am in the widget. So I'm not sure why one of them is adding extra code I don't want and the other isn't.
Here's my code:
<?php global $theme; query_posts(array( 'post_type' => 'brands', 'order' => 'ASC', 'posts_per_page' => 99 )); ?> <ul class="brands"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <li> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_post_thumbnail( array(125,125) ); ?></a> </li> <?php endwhile; ?> </ul> <?php endif; ?>