Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 112906

beloutte on "A query for taxonomies"

$
0
0

thanks for your answer !

you mean using $baz to display the categories ?
I'm not sure I see how to do... but I'll search in that direction

<?php
$args=array(
  'taxonomy' => 'marque',
  'orderby' => 'name',
  'order' => 'ASC'
  );
$baz=get_categories($args);
  foreach($baz as $category) {
    echo '<div id="marque1">'
    echo '<h1><a href=" ' . get_category_link( $category->term_id ) . ' "  ' . '>' . $category->name.'</a> </h1> ';
    echo '<img src=" '. $category->image . ' "  ' . ' />;
    echo '</div>';  }
?>

would it be correct ?


Viewing all articles
Browse latest Browse all 112906

Trending Articles