Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter wywarren

    (@wywarren)

    Hi superkot,

    Thanks for the reply.

    I have been on that page before amidst my searching but via the various file type targets I’ve chosen to save as for CSV (Comma Delimited), CSV Windows, CSV MacOS all still turn to question marks (?). I also have followed the web option selection to verify that indeed it was intended for Unicode UTF-8. I’m currently using Excel 2007 on my workstation. I have yet to confirm this is the case on a later version of Excel.

    Thread Starter wywarren

    (@wywarren)

    I ended up reinstalling wordpress and it seems to be working now

    Thread Starter wywarren

    (@wywarren)

    I guess this is resolved but should be updated according in the actual plugin in a later release.

    Thread Starter wywarren

    (@wywarren)

    Nope it’s actually a single site. Turns out if you have a different wordpress install ur; than your site url it could cause this. Turns out the fix is this: https://wordpress.org/support/topic/thumbnails-not-included-for-attachment-fix?replies=5

    function query_images() {
        $sizes = array('thumbnail', 'medium', 'large', 'full');
        if (function_exists('get_intermediate_image_sizes')) {
          $sizes = array_merge(array('full'), get_intermediate_image_sizes());
        }
        $this->images = array();
        $upload_dir = wp_upload_dir();
        foreach ($sizes as $size) {
          list($url, $width, $height) = wp_get_attachment_image_src($this->id, $size);
          $filename = str_replace( $upload_dir['baseurl'], $upload_dir['basedir'], $url);
          if (file_exists($filename)) {
            list($measured_width, $measured_height) = getimagesize($filename);
            if ($measured_width == $width &&
                $measured_height == $height) {
              $this->images[$size] = (object) array(
                'url' => $url,
                'width' => $width,
                'height' => $height
              );
            }
          }
        }
      }

    Just replace that function located in models/attachment.php and you will get back your thumbnails (featured image) in JSON API

Viewing 4 replies - 1 through 4 (of 4 total)