Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mqws

    (@mqws)

    The full code:

    $catID = $wp_query->query_vars['cat'];
    
    $args = array(
    	'term_args'    => array(
    		'hide_empty'    => 1,
    		'parent' 		=> $catID,
    	),
    );
    
    echo '<ul class="categorieoverview">';
    	$terms = apply_filters( 'taxonomy-images-get-terms', '', $args );
          foreach( (array) $terms as $term){
            echo  '<div class="categoriewrap"><li class="categorie" style="border: 3px solid '. $color_data. ';"><div class="categorie-image"><div class="helper"><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, 'test' );
               echo '<img src="/******"></a></div></div><div class="cat-title" style="background-color: '. $color_data. ';"><h1><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">'.$term->name.'</a></h1></div></li></div>';

    Thread Starter mqws

    (@mqws)

    Hi Marcel,

    i’m so sorry.
    The code is within category .php and is used to get all information regarding subcategories to display them on the category page.
    I use the above code to display all subcategories with images. The plug-in Taxonomy Images is used to attach thumbs to categories. By this code I call for all subcategories, including their thumbnail.

    I will change the above code to complete it with the echo part. Maybe that makes it more clear to you.

    Issue now is that with this code I can’t seem to use your Custom Taxonomy Order NE plugin.

    Does this make more sense?

Viewing 2 replies - 1 through 2 (of 2 total)