WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts by Zemanta
[resolved] Don't want the default image for thumbnails (7 posts)

  1. pako69
    Member
    Posted 7 months ago #

    Hi
    I prefer to do not have thumbnails image when the the size of my orginal thumbnails is not big enough, so i have change the return of this function: zem_rp_get_post_thumbnail_img(): now it just return false and it works great.
    But i don't like that because in case of upgrade i will loose my changes. Is there a cleaner way to say :
    - Display Thumbnails For Related Posts : yes

    - For posts without images, a default image will be shown :
    yes > a choice between:
    upload my own image
    OR
    use you Zemanta default images

    no > do not display any thumbnails images...

    Look at this page, and you will see that there is no images if my original post thumbnails images are too small: http://www.strategies-ecommerce.com/paroles-d-experts/le-commerce-omni-canal-en-mode-accelere-zoom-sur-hybris
    thanks

    http://wordpress.org/plugins/related-posts-by-zemanta/

  2. pako69
    Member
    Posted 7 months ago #

    Is thre anybody out there ? :-)
    Thanks

  3. xdaseinx
    Member
    Plugin Author

    Posted 6 months ago #

    Hi Pako!

    Sorry for the late answer.
    In reality, no, there's no way of doing this easily. Sorry to disappoint.

    Best,
    Rok

  4. pako69
    Member
    Posted 6 months ago #

    But i did ;)
    In the function: zem_rp_get_post_thumbnail_img($related_post, $size = null, $force = false)

    And at the end of the function:

    return false;
    //return zem_rp_get_img_tag(zem_rp_get_default_thumbnail_url($related_post->ID, $size), $post_title);

    You can see the result here at the bottome of the page:
    http://www.strategies-ecommerce.com/paroles-d-experts/magazine-special-commerce-connecte

  5. xdaseinx
    Member
    Plugin Author

    Posted 6 months ago #

    I meant that it's hard not to break your plugin with an update, hehe.

  6. pako69
    Member
    Posted 6 months ago #

    so what ?
    i just don't care :)
    at each update, i change the source code, that'all..

  7. xdaseinx
    Member
    Plugin Author

    Posted 6 months ago #

    Great! :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.