• Resolved Navjosh

    (@navjosh)


    Hi there.

    Thanks for the nice plugin.

    I’m using it on my site hiphop-n-more.com and I played around the the CSS settings with vertical(medium) enabled on desktop.

    I’m having a problem now. Ever since I’ve activated the plugin, I’m not being able to remove or change the featured image in a post. Even when I click on remove featured image and click update post, it still retains the same image that it picked previously.

    For your info, I’m using the “easy add thumbnail” plugin which Checks if you defined the featured image, and if not it sets the featured image to the first uploaded image into that post.

    Could there be a conflict and can you help me resolve this please?

    https://wordpress.org/plugins/wordpress-23-related-posts-plugin/

Viewing 12 replies - 1 through 12 (of 12 total)
  • silvoslaf

    (@silvoslaf)

    Hey, thanks for reaching out, I’ll gladly help!

    I would suggest you to remove those previously added featured images from your Media Gallery completely and add a new featured image, to see if the thumbnail for that particular related posts changed or not.

    Also — what changes did you make in your CSS settings window? What happens if you disable that “easy add thumbnail” plugin? Is it any better?

    Let us know, we’re eager to help you out! Take care & I’m looking forward to your reply!

    Best,
    Silvo

    Thread Starter Navjosh

    (@navjosh)

    Ok, I was able to change featured image by deleting it completely from media library. Thanks.

    But I have a related problem as well. The thumbnails in my “Latest Content” posts in the right sidebar used to show square images earlier, irrespective of the shape of the original image in the post. But since I have installed this plugin, it is showing rectangles if the image in the post is a rectangle. It is making that section of the my site look bad. Can you help please.

    To generate that Latest Content section, I’m using a simple PHP code as follows:

    `<?php
    $the_query = new WP_Query(‘showposts=5&orderby=post_date&order=desc’);
    while ($the_query->have_posts()) : $the_query->the_post(); ?>
    <div class=”twentyten-latest-post”>
    <?php the_post_thumbnail(array(56,56), array (‘class’ => ‘alignleft’)); ?>
    <a title=”<?php the_title(); ?>” href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a>
    <div class=”clear”></div>
    </div>

    <?php endwhile; ?>
    <?php wp_reset_query(); ?>
    </li>`

    And here’s the CSS I’m using for related posts:

    .related_post_title {
    color:#948F8F;
    margin-top: 25px !important;
        font-size: 20px !important;
        text-align:center;
    }
    ul.related_post {
    display: block !important;
    margin-left:auto; !important;
    margin-right:auto; !important; text-align:center;
    padding: 0 !important;
    position: relative !important;
    }
    ul.related_post li {
    }
    ul.related_post li a {
    font-family: Arial;
    text-align:left !important;
    }
    ul.related_post li img {
    }
    .wp_rp_content {
    width:100%;
    }
    Thread Starter Navjosh

    (@navjosh)

    Here is a screenshot of it: http://imgur.com/pWHfbFu

    Earlier, all images used to show squares, like I have set them to be in my PHP code. I’ll appreciate if you can help so I can keep using the plugin.

    PetraP

    (@petrap)

    Hey Navjosh,

    a quick question, just to be on the same page here – are you using any other related/latest posts plugin? I checked your site and noticed that at the bottom of your posts there is the “Related content” which is definitely ours. On the right side there are those “Latest content” posts which don’t seem to be ours – or are we missing something out?

    Let us know – we are looking forward to your reply!

    Best,
    Petra

    Thread Starter Navjosh

    (@navjosh)

    No Petra, I’m not using any other plugin. The “latest Content” section is generated through a simple PHP code which I pasted in my previous reply for you.

    I’ only using easy add thumbnail plugin as I mentioned in my first post. But I can’t afford to disable that.

    PetraP

    (@petrap)

    Hey,

    we are on the same page now. 🙂 To be completely honest I don’t think that our plugin affects the theme’s latest posts. I found in this documentation under Parameters->Size a “PLEASE NOTE” note:The crop does not work in WP 3.0+. All that is needed for WP 3.0+ is the call for the thumbnail to post. Then proceed to media in the dashboard and set your thumbnail to crop to the size you wish to use. Would you mind setting the image sizes in your Dashboard Settings – you can check this screenshot for easier navigation. Hope this helps and please let me know how it goes!

    Take care & have a nice weekend,
    Petra

    Thread Starter Navjosh

    (@navjosh)

    yes, I do have it set to 150×150 right from the beginning.

    They were appearing absolutely fine (all square) right before I installed your plugin. There’s definitely something wrong happening that my related posts PHP code is now picking images in their original shapes.

    Something that I do notice is that it’s picking images in their “medium size” settings (for images in my media settings) and not as per the actual thumbnail (which for my site is 150×150)

    PetraP

    (@petrap)

    Hmmm….would you mind disabling our plugin and check if your image sizes get fixed? Also, please tell me when the plugin is disabled so that I can re-check you site.

    Best,
    Petra

    Thread Starter Navjosh

    (@navjosh)

    I was just doing that. Disabled and deleted but that did not fix the issue. Can you have a look and help me. I really like your plugin and don’t want to do away with it. I just started using it this week.

    Thread Starter Navjosh

    (@navjosh)

    UPDATE:

    For the post that I published after disabling this plugin, my latest content section is showing square thumbnails again.

    So it’s def got to do with this plugin but how to fix it, that I don’t know. Please help.

    PetraP

    (@petrap)

    Hey Navjosh,

    great news – we think we have found a solution to your problem:
    1. first change size in your code from (56,56) to ‘thumbnail’ like this:
    <?php the_post_thumbnail('thumbnail', array ('class' => 'alignleft')); ?>
    2. add following custom css rule for thumbnails in sidebar:

    .twentyten-latest-post img {
    width:56px;
    height:56px;}

    In the end it should look like this:

    .related_post_title {
    color:#948F8F;
    margin-top: 25px !important;
        font-size: 20px !important;
        text-align:center;
    }
    ul.related_post {
    display: block !important;
    margin-left:auto; !important;
    margin-right:auto; !important; text-align:center;
    padding: 0 !important;
    position: relative !important;
    }
    ul.related_post li {
    }
    ul.related_post li a {
    font-family: Arial;
    text-align:left !important;
    }
    ul.related_post li img {
    }
    .wp_rp_content {
    width:100%;
    }
    .twentyten-latest-post img {
    width:56px;
    height:56px;}

    This should work like a charm 🙂
    Please let me know how it goes!

    Best,
    Petra

    Thread Starter Navjosh

    (@navjosh)

    Worked like a charm indeed. Thank you so much.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Plugin affecting "set featured image" of post’ is closed to new replies.