• Hi there! Your plugin is a great addition to my site. I have been trying to tweak the plugin to suit my needs, but unfortunately I need some help on this.

    I am currently using shortcodes to place the terms under taxonomy “Movie Titles” on a single page. See here: https://www.filmsteak.com/latest-movie-titles/

    QUESTION NUMBER ONE:
    I want to change the image size from ‘thumbnail’ to ‘medium’. I already tried changing the public-filters.php file. Instead of:

    ‘image_size’ => ‘thumbnail’

    I changed it to:

    ‘image_size’ => ‘medium’

    But the page still looks the same way.

    QUESTION NUMBER TWO:
    Why is my thumbnail for Taxonomy Images set to 75×75? I already changed my Media settings to use 228×155 for thumbnails.

    Michael, I need your help on these. Thanks in advance!

    https://www.ads-software.com/extend/plugins/taxonomy-images/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Michael Fields

    (@mfields)

    Please post the exact code that you are using in your template file. Please also return download and install a fresh version of 0.7. I cannot help you if you are modifying the plugin files directly.

    Thread Starter davaobase

    (@davaobase)

    Never mind, I came up with a quick solution.

    I only changed the file deprecated.php, specifically on specifying the size of the images. I changed ‘detail’ to ‘thumbnail’:

    Under function taxonomy_images_plugin_shortcode_deprecated( $atts = array() ):

    $defaults = array(
    ‘taxonomy’ => ‘category’,
    ‘size’ => ‘thumbnail‘,
    ‘template’ => ‘list’
    );

    Also on defining the value of $img:

    $img = ”;
    if ( array_key_exists( $term->term_taxonomy_id, $associations ) ) {
    $img = wp_get_attachment_image( $associations[$term->term_taxonomy_id], ‘thumbnail‘, false );
    }

    Thanks again. Great plugin!

    Plugin Contributor Michael Fields

    (@mfields)

    Please do not use the deprecated functions!!!! They may not exist in the future. That’s why I put them in the deprecated file and add comments that say “Do not use this!!!”.

    Thread Starter davaobase

    (@davaobase)

    Oops, sorry. I guess I’m such a nOOb in things like this. ??
    Can you point me in the right direction?

    Plugin Contributor Michael Fields

    (@mfields)

    No worries ?? Moving forward, it’s best to use the following style of code. It will give you more flexibility to customize + it will be absolutely invisible if you ever decide to uninstall the plugin:

    $terms = apply_filters( 'taxonomy-images-get-terms', '' );
    if ( ! empty( $terms ) ) {
        print '<ul>';
        foreach( (array) $terms as $term ) {
            print '<li><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, 'detail' ) . '</li>';
        }
        print '</ul>';
    }

    You can read more about how to customize it here: https://www.ads-software.com/extend/plugins/taxonomy-images/

    Thread Starter davaobase

    (@davaobase)

    Are you planning to disable the shortcodes feature in the future? I’m using the shortcode and placed it onto a page:

    [taxonomy_image_plugin taxonomy=”movie”]

    Plugin Contributor Michael Fields

    (@mfields)

    Yes. All shortcode functionality will be moved to my taxonomy list shortcode plugin.

    Thread Starter davaobase

    (@davaobase)

    Aw, bummer. n00bs like me might find it a tad more difficult to place the Taxonomy Images list on a WordPress page. ?? I’ll just have to settle with the shortcode + deprecated file for now. I hope I can muster enough patience to dig through my templates. Thanks, Michael!

    Plugin Contributor Michael Fields

    (@mfields)

    There will be an automatic method in the next release of taxonomy list shortcode plugin. There will be two template that support images + have paging functionality built right in. Just need to fix some bugs and do some testing. Probably about a week or two.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Taxonomy Images] Cannot change taxonomy image size’ is closed to new replies.