Hallo!
Ich möchte der Funktion $tax_term->name; eine css class mitgeben respektive den Namen fett machen.
Wie mache ich das korrekt?
Vielen Dank für eure Hilfe.
Ivo
CODE Beispiel:
<?php
$post_type = 'angebote';
$tax = 'kategorien';
$tax_terms = get_terms($tax);
if ($tax_terms) {
foreach ($tax_terms as $tax_term) {
$args=array(
'post_type' => $post_type,
"$tax" => $tax_term->slug,
'orderby'=>'date',
'order'=>'DESC',
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
echo $tax_term->name;
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<ul class="angebote"> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li></ul>
<?php
endwhile;
}
wp_reset_query();
}
}
?>