• Resolved hz_i3

    (@hz_i3)


    For thumbnails, I found wp_get_attachment_image_url does not return high resolution thumbnails. I replaced it with get_the_post_thumbnail.

    I am wondering if we can make the get_the_post_thumbnail as default so I can update this plugin without having to modify it later?

    Or is there a way to add a hook to replace the thumbnail anchor link?

    I have 2 examples:

    Before (blocks/Post_Grid_4.php at line 2086):
    $post_loop .= '<a href="'.$titlelink.'"><img alt="'.$title.'" src="'.wp_get_attachment_image_url( $post_thumb_id, 'full' ).'" /></a>';

    After:
    $post_loop .= '<a href="'.$titlelink.'">'.get_the_post_thumbnail().'</a>';

    We need to change it for each post type, for example: blocks/Post_List_3.php

    vim ultimate-post/blocks/Post_List_3.php + 2289

    before: $post_loop .= ‘'.$title.'‘;

    after: $post_loop .= ‘‘.get_the_post_thumbnail().’‘;

Viewing 1 replies (of 1 total)
  • Plugin Author WPXPO

    (@wpxpo)

    Hello @hz_i3,

    Yes, you are right. We return a full image instead of the thumbnail. It has a reason.

    Post Grid and some other blocks don’t have an image crop option. So the only full image will show in here. Just because people use this type of blocks in a big area so we remove the image crop option. That’s why this problem arises. I guess you are a brilliant developer if you have any more suggestions let us know.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Hight relosution post image’ is closed to new replies.