• Hello…

    I have a little problem….

    I have made a page that are showing company and in witch category they are..

    Now they are showing :
    Backes Ljudbyggeri AB
    Area: Stockholm
    Nu m?ste det funka
    Categories: Bilexteri?r | Dekaler & solfilm | Ljud & Bilstereo

    But i Whant to show them:

    Bilexteri?r
    company 1
    company 2
    company 3

    Dekaler & solfilm
    company 1
    company 4

    And if there is a company that have different categories thay can show them in the other categorys.

    My code is:

    <?php get_header(); ?>
    
    <div id="casing">
    <div id="content">
    
    <?php $loop = new WP_Query( array(
    	'post_type' => 'partner',
    	'posts_per_page' => 10
    	) );
    	?>
    
    <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    
    <div class="carbox clearfix" id="post-<?php the_ID(); ?>" style="width:895px;">
    
    <?php
    if ( has_post_thumbnail() ) { ?>
    <a href="<?php the_permalink() ?>"><img class="propimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=80&w=140&zc=1" alt=""/></a>
    <?php } else { ?>
    <a href="<?php the_permalink() ?>"><img class="propimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php bloginfo('template_directory'); ?>/images/dummy.jpg&h=80&w=140&zc=1" alt="" /></a>
    <?php } ?>
    
    <?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' ); ?> 
    
    Verksamhetsomr?de: <?php echo get_the_term_list( get_the_ID(), 'area' ) ?>
    
    <div class="entry-content">
    	<?php the_content(); ?>
    </div>	
    
    <?php
    echo get_the_term_list( get_the_ID(), 'partner_category', "Categories: "," | " );
    ?>	
    
    </div>
    
    <?php endwhile; ?>
    
    </div>
    <?php get_sidebar(); ?>
    <?php get_sidebar('homepage'); ?>
    <?php get_footer(); ?>
  • The topic ‘taxonomies problem’ is closed to new replies.