WordPress.org

Ready to get started?Download WordPress

Forums

FPW Post Thumbnails
[resolved] Automatic height or width? (12 posts)

  1. nkarafo
    Member
    Posted 2 years ago #

    Hello, it's a nice plugin but is there any solution to have an ability to have all the thumbnails automatic resized?
    For example I don't want to input height AND width pixels. I would like to have height e.g. at 100px only and not width. So, it could calculate automatically the width based on height.
    Now, all the images are deformed.
    Thanks.

    http://wordpress.org/extend/plugins/fpw-post-thumbnails/

  2. Frank P. Walentynowicz
    Member
    Plugin Author

    Posted 2 years ago #

    Right now they are scaled based on width which is more natural. It is possible to make height as a base. I'll try to implemented a choice in new version.

  3. nkarafo
    Member
    Posted 2 years ago #

    Thank you Frank for your prompt reply!
    Ok, I see. It's ok.
    Another thing that I think it needs correction is that when you press the full post to read it normally, it has also the small thumbnail at top-left corner which is not necessary. Is it possible somehow to remove this?
    Thank you again!!

  4. nkarafo
    Member
    Posted 2 years ago #

    Ok, don't worry, I installed plugin "Thumbnail For Excerpts" and I found a solution.

  5. Frank P. Walentynowicz
    Member
    Plugin Author

    Posted 2 years ago #

    Check version 1.0.7 which was released today. All mentioned changes are there. If you don't want the thumbnail being displayed for post's full content just uncheck the box "Content thumbnails enabled".

  6. nkarafo
    Member
    Posted 2 years ago #

    Yes, you are right. It's working!
    But for me it's working properly only for excerpts thumbnails and not with content thumbnails.
    I had to change the code from theme's original index.php

    <?php the_content();?>

    to

    <?php the_excerpt() ?>
    <p><a href="<?php the_permalink() ?>">(read moreā€¦)</a></p>
    </div>

    So far it's almost as good as "Thumbnail For Excerpts". If I am not mistaken, I think that "tfe" is slightly faster than yours but yours have easy settings for some configurations.

  7. Frank P. Walentynowicz
    Member
    Plugin Author

    Posted 2 years ago #

    But for me it's working properly only for excerpts thumbnails and not with content thumbnails.

    Could you tell me more about what is not working with content thumbnails?

  8. nkarafo
    Member
    Posted 2 years ago #

    I don't know. Maybe I have already made changes in the files - functions.php, etc and now it doesn't work anymore with content and I don't remember what were the changes. It's probably my fault because in the beginning it was working partially with content thumbnails.

  9. nkarafo
    Member
    Posted 2 years ago #

    OK, I revert it using an old file index.php that I found and now it's working with content thumbnails as before but it's the same again. When I press the click to read more, it's the same thumbnail again in top-left corner. I'm using the latest version 1.0.7 but unfortunately I cannot share my website here. I could send it to an email because my I would prefer not others to see until it's done.

  10. Frank P. Walentynowicz
    Member
    Plugin Author

    Posted 2 years ago #

    If you have "Content thumbnails enabled" unchecked and your full post is being displayed via the_content and you still have thumbnails then check your theme if the_content is preceded by the_post_thumbnail(). If it is then remove it.

  11. nkarafo
    Member
    Posted 2 years ago #

    I unchecked "Content thumbnails enabled" but now I don't have thumbnails at all, neither in frontpage, neither in full post. My theme supports them using featured posts but something is not done right. My theme is called maximum. You can download and try it from here:

    http://fearlessflyer.com/themes/maximum

    But use it only if you want for yourself. I have found solution to my problem.

    Thank you for your help. It's nice to see this support from the developers!

  12. Frank P. Walentynowicz
    Member
    Plugin Author

    Posted 2 years ago #

    Ok. The only change necessary is to replace in index.php the_content() with the_excerpt(). In single.php leave the_content(). Uncheck "Content thumbnails enabled". All done. The theme will use the_content() in single post and the_excerpt() in the list of posts.. Single post will use the_content() and you've disabled thumbnails for content. No thumbnail in single post. In index.php which displays list of post after the change to the_excerpt() it will display thumbnails.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic