• Hello,

    When importing from a WP-Property feed I noticed that the gallery provides the attachment_id and all the thumbnail urls, but not the actual attachment url. So I’ve amended the code in wp-property/core/class_functions.php on line 3782 to add the following code which provides a attachment_url field in the feed.

    $image = wp_get_attachment_image_src($attachment_id, 'full', true);
    if ($image) {
      $return['gallery'][$attachment->post_name]['attachment_url'] = $image[0];
    }

    Hoping this can be merged with the plugin, if not it’s here for anyone who needs it. This will allow you to migrate over the gallery with the full images.

    Cheers

    https://www.ads-software.com/plugins/wp-property/

  • The topic ‘Import Full Gallery Image’ is closed to new replies.