Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Yes, that’s possible. Please, follow the steps below:

    1. Open the “/wp-content/plugins/cp-related-posts/cp-related-posts.php” file, with the text editor your choice.

    2. Go to the snippet of code:

    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $related_posts[ $i ]->ID ), ‘single-post-thumbnail’ );

    and replaces the ‘single-post-thumbnail’ text, by any of following strings:

    ‘thumbnail’
    ‘medium’
    ‘large’

    or if you want an specific size used in your website, replace the previous string with an array with the width and height of the image. For example if you are cropping your images to 150×150 px, the code to use would be:

    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $related_posts[ $i ]->ID ), array(150,150) );

    That’s all.
    Best regards.

    Thread Starter JulesWebb

    (@juleswebb)

    Hi “codeperson”

    Thanks for the fast response, and solution.

    Of course every time the plugin is updated I will need to make the same edit. Any chance that you’d consider adding this functionality as an option in the CP Related Posts settings?

    I love that I can specifically add the related posts on the “add post” interface. Your settings there really separate you from the rest.

    How much is your pro version?
    I’m asking because for some reason I’m not able to get to https://wordpress.dwbooster.com/
    I keep getting an Error code: ERR_CONNECTION_RESET
    I’ve researched the error and it seems to be some sort of proxy server issue, but I haven’t been able to resolve it. —I’ve not implemented “Use a proxy server for your LAN” —AND it’s the only site I’ve come across that I can’t access. kinda weird. There must be something about it that’s triggering some firewall rule.

    I was able to access your demo site. That was helpful.

    Thanks for your time and info!
    Jules

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I will add this feature to the next version of the plugin. I’m sorry but in the current version will be needed modify the plugin’s code, incase you upgrade to the pro version of the plugin.

    To get additional information about the pro version of the plugin, visits the following link:

    https://wordpress.dwbooster.com/content-tools/related-posts

    Best regards.

    Thread Starter JulesWebb

    (@juleswebb)

    I would love to get additional info on the pro version, unfortunately I am unable to access your site.

    regards,
    jules

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Could you tell me the browser are you using to access to our website, please?
    Are you accessing to our website through your Internet connection, or the connection of your company? (Some companies limit the access to many websites, through their connections)
    Another possibility is the existence of malware in your computer, in whose case would be recommended to install an antimalware.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image sizes’ is closed to new replies.