[Plugin: Taxonomy Images BETA] Some suggestions
-
Hello,
I’ve been playing a little bit with your wonderfull plugin. I plan to integrate it in a touristic website.
I plan to use it in 2 ways:
– In a category with subcategories, I show a list of all the sub-categories. For each of the sub-category, I want to show the “thumbnail” image, the title and the description of the sub-category.
– In a post, just below the title of the post, I want to show a series of small icons (probably around 16×16 or 20×20) representing each selected element of a specific taxonomy.
Here is the code I plan to use for both my projects:
$taxonomy_name = ‘name_of_the_taxonomy’;
$terms = get_terms($taxonomy_name);
foreach ( $terms as $t ) {
$url = get_term_link( $t, $t->taxonomy );
$img = $taxonomy_images_plugin->get_image_html( ‘detail’, $t->term_taxonomy_id );
if( !empty( $img ) )
print ‘‘ . $img . ‘‘;
}In the future, if you have the time, it would be great to have the possibility to change or add new image sizes.
For the moment, since the detail size is too big for me, I solved my problem by simply changing the line “private $detail_size = array( 75, 75, true );” to “private $detail_size = array( 20, 20, true );” in taxonomy-images.php.
Thank you again,
https://www.ads-software.com/extend/plugins/taxonomy-images/
- The topic ‘[Plugin: Taxonomy Images BETA] Some suggestions’ is closed to new replies.