• I am unable to get all image in a loop for taxonomy images. I have “writer” taxonomy for “service” post type but taxonomy images are not getting

Viewing 1 replies (of 1 total)
  • Hello can you try the following example from the documentation of plugin.

    
    $terms = apply_filters( 'taxonomy-images-get-terms', '', array(
            'taxonomy'     => 'service',
            ) );
            if ( ! empty( $terms ) ) {
                print '<div class="container" style="padding-top:50px;">';
                foreach ( (array) $terms as $term ) {
    
                print'<div class="listcategory" >';
                print'<div class="category-content" ><a>taxonomy ) ) . '"><h2>'.$term->name.'</h2></div>';
                print'</a>';
                print '<div class="category-thumb">' . wp_get_attachment_image( $term->image_id, 'medium' ) . '</div>';
                print '<div class="cat-description">'.$term->description.'</div>';
                print '</div>';
                                 }
                print '</div>';
                
            }

    Best Regards

    • This reply was modified 6 years, 4 months ago by ilpert.
Viewing 1 replies (of 1 total)
  • The topic ‘unable to get taxonomy images for custom post taxonomy’ is closed to new replies.