WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Images II
[resolved] How to show full size image instead of thumbnail (6 posts)

  1. Anders Ekkje Slettebø
    Member
    Posted 2 years ago #

    I'm using the ciii_category_archive_image(); variable, but I want this to output the full version of the image, and not the thumbnail. Is this possible? If yes, how?

  2. Anders Ekkje Slettebø
    Member
    Posted 2 years ago #

    In term-images.php I find this code:
    '<img src="<?php
    echo $term[ 'image' ]; ?>" alt="<?php echo $term[ 'name' ]; ?>" />'
    This cases the image src to be empty, but if I change from image to thumbnail, the thumbnail file is showing.

    I noticed this text from Other Notes:
    You can pass the show_description parameter to not show the term or category description, and the size parameter to specify either 'original' or 'thumbnail'.

    I then tried to change from image to original, but that didn't help either.

  3. Simon Wheatley
    Code for the People
    Plugin Author

    Posted 2 years ago #

    Here's some code I'm using to show the original size image:

    <?php
    if ( function_exists( 'ciii_term_images' ) ) :
        ciii_term_images( 'outlet', 'size=original&link_images=0&show_description=0' );
    endif;
    ?>
  4. Simon Wheatley
    Code for the People
    Plugin Author

    Posted 2 years ago #

    The code above is for a taxonomy called 'outlets'. The main thing to look at is the size=original bit in the parameters.

  5. Anders Ekkje Slettebø
    Member
    Posted 2 years ago #

    Hi Simon. Thank you for the feedback. I couldn't wait for your response, so I chose another plugin (Taxonomy Images) which seems to be working fine. I guess this topic is now resolved. Keep up the good work!

  6. pablojinko
    Member
    Posted 2 years ago #

    Hello,

    I've been looking for a solution to this issue without luck.

    I'm using the ciii_category_archive_image() but had the same issue as the OP. CHanged to 'thumbnail' on term-images.php and I got the thumbnail.

    I want to show the original image instead of the generated thumbnail. I saw a solution you posted but don't know where should I fixed the code and how.

    I hope you could help me,

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic