• Even though you can change the default image size for the menus, the function that pulls the image doesn’t use it.

    The error resides in the function erm_get_image_src in file includes/misc-functions.php.

    Around line 20 the function looks like this:

    function erm_get_image_src( $image_id, $size = 'thumbnail' ) {
    
      if ( $size == 'full' || $size == 'large' || $size == 'medium' || $size == 'thumbnail' ) {
        $image_data = wp_get_attachment_image_src( (int)$image_id, $size );
        return $image_data[0];
      }
      return false;
    }

    It’s enough to remove the if to solve the problem

    https://wordpress.org/plugins/quick-restaurant-menu/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom size images error’ is closed to new replies.