Support » Plugin: Sideways8 Simple Taxonomy Images » [Plugin: Sideways8 Simple Taxonomy Images] Taxonomies without images

Viewing 5 replies - 1 through 5 (of 5 total)
  • We should have this resolved by tomorrow.

    There is now a new version of the plugin. Check out the changelog.

    Thanks for your reply.
    I just updated to the new 0.8.1 version but it seems the problem is still there.
    The html code is slightly changed (a class was added compared to previous version), but I am still getting empty images for taxonomies with no images associated.

    Hmmm…. I’m guessing you are using this in a theme, right? If so, can I get what you are working on? (zip it up and get it to me?)

    Well, I am not really using this in a theme, but I made a shortcode based on your plugin to be used in conjunction with the Views plugin.

    However to reproduce it, you don’t need the Views plugin. It is sufficient to add the following code to a custom site-specific plugin or to the theme functions.php:

    add_shortcode( 'taxonomy_image', 'taxonomy_images_shortcode' );
    function taxonomy_images_shortcode( $atts = array() ) {
    	extract( shortcode_atts( array(
    		'field' => 'id',
    		'value' => '',
    		'taxonomy' => 'category',
    		'output' => 'OBJECT',
    		'filter' => 'raw'
    	), $atts ) );
    	$term = get_term_by( $field, $value, $taxonomy, $output, $filter);
    	return s8_get_taxonomy_image($term) . $term->name . '<br />';
    }

    and then use the shortcode in a post/page this way:

    [taxonomy_image value="1"][/taxonomy_image]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Sideways8 Simple Taxonomy Images] Taxonomies without images’ is closed to new replies.