With the last update being 3 years ago, this plugin is considered abandoned. Are there any plans to update it to be compatible with the latest versions of WordPress, PHP, etc.?
]]>When opening the media library and the unsplash tab, I cannot scroll down to see more images and I cannot see an “insert” button on the right side
]]>Looking to recommend this plugin to clients … will this plugin be updated any time soon?
]]>Hi there, I’ve got the plugin working on the sidebar of WordPress Gutenburg (not in the blocks section).
I’ve got this vision where I want to be able to use AI to create a whole blog post and auto insert images that match the AI-generated content.
It would be really neat if there was an option for there to be recommended images based on the content – basically, an AI aspect to the gallery.
Please let me know if this is something you could work on for near future updates. Many thanks
]]>I use unsplash together with elementor for several websites to insert images via media library and never encountered a problem. However, with my newest website (same server, same settings), I’m facing a strange bug: When opening the media library and the unsplash tab, I cannot scroll down to see more images than the few already visible at the top. Furthermore, I cannot see an “insert” button on the right side. I see the top fields like name, title etc., though.
When I click on a barely visible image at the bottom everything (including the right column) jumps to that point, but I can’t scroll up again.
I have a 27” screen, changed browsers, de- and re-installed the plugin and checked my other websites (where everything still works fine) – without any success. Other plugins which also allow inserting images via media library, such as envato elements, work fine, too. The website is up to date, apart from unsplash, I only use elementor and envato and I use Astra as a theme (again the same settings as with my other websites).
Does anyone know how to solve this issue?
]]>On my site, I try to use a consistent aspect ratio for my inline images. Is there a way to crop to a certain aspect ratio/dimension before embedding the Unsplash image into the post or page? Thanks!
]]>Hello support and dev team,
I am using custom upload in my plugin and it does not show up the plugin option while open media select https://prnt.sc/1166rwj
It works fine when using media from post or page here https://prnt.sc/1166sib
Let me know if there is an api or hooks that help me to add in custom uploader.
Thanks
]]>I am wondering if this plugin is maintained, eg to support upgrades of WP or PHP?
]]>When I try to add an Unsplash image to a block in my blog posts lately, it fails and says, “This block has encountered an error and cannot be previewed.”
I can add images the old fashioned way of downloading the image from Unsplash then uploading it to the plain image block.
I think the Unspash feature is broken.
It looks like the Unsplash plugin is wrapping images in a figure
element however this breaks blocks that use the Unsplash image as a background such as AWB. I’ve posted an issue on their GitHub also to give them the heads up https://github.com/nk-o/awb/issues/39
I’m assuming its’ the Unsplash plugin mixing the markup but it could be AWB, I don’t know. Hopefully this helps someone else using both plugins. The solution was to use a non-Unsplash-associated image as a background instead.
]]>Images are properly scaled on desktop version of the popular Newspaper theme, as well as the responsive mobile view. But when using their optimized TD mobile plugin (part of the theme – for minimalistic super optimized mobile experience) it loads the full sized images, like 6k pixels. How do I go about reducing this to a more managable 265px?
Example:
<img class="entry-thumb" src="https://images.unsplash.com/photo-1493238792000-8113da705763?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjE1MDc2MX0&fm=jpg&q=85&fit=crop&w=6939&h=4631" alt="black Audi R8 parked beside road" title="?? KVIZ: Kateri avtomobil bo? vozil, ko bo? velik?" width="6939" height="4631">
I believe the plugin/theme uses this code to render the post list (inside plugins / td-composer / mobile / includes / modules / td_module_mob_1.php):
<?php
class td_module_mob_1 extends td_module {
function __construct($post) {
//run the parrent constructor
parent::__construct($post);
}
function render() {
ob_start();
?>
<div class="<?php echo $this->get_module_classes();?>">
<?php echo $this->get_image('td_265x198');?>
<div class="item-details">
<?php echo $this->get_title();?>
<div class="td-module-meta-info">
<?php if ( td_util::get_option('tds_category_mobule_mob_1') == 'yes' ) { echo $this->get_category(); }?>
<?php echo $this->get_date();?>
</div>
</div>
</div>
<?php return ob_get_clean();
}
/**
* this is used to render amp data for amp ajax search
* @return array
*/
function render_amp() {
$post_data = array(
'post_url' => $this->href,
'post_title_attribute' => $this->title_attribute
);
/**
* post featured image
*/
$tds_hide_featured_image_placeholder = td_util::get_option('tds_hide_featured_image_placeholder');
//retina image
$srcset_sizes = '';
// do we have a post thumb or a placeholder?
if ( !is_null( $this->post_thumb_id ) or ( $tds_hide_featured_image_placeholder != 'hide_placeholder' ) ) {
if ( !is_null( $this->post_thumb_id ) ) {
if ( td_util::get_option('tds_thumb_td_265x198' ) != 'yes' ) {
$td_temp_image_url[1] = '265';
$td_temp_image_url[2] = '198';
$td_temp_image_url[0] = TDC_URL_LEGACY . '/assets/images/thumb-disabled/td_265x198.png';
$attachment_alt = 'alt=""';
$attachment_title = '';
} else {
$td_temp_image_url = wp_get_attachment_image_src($this->post_thumb_id, 'td_265x198');
$attachment_alt = get_post_meta($this->post_thumb_id, '_wp_attachment_image_alt', true );
$attachment_alt = 'alt="' . esc_attr(strip_tags($attachment_alt)) . '"';
$attachment_title = ' title="' . esc_attr(strip_tags($this->title)) . '"';
if (empty($td_temp_image_url[0])) {
$td_temp_image_url[0] = '';
}
if (empty($td_temp_image_url[1])) {
$td_temp_image_url[1] = '';
}
if (empty($td_temp_image_url[2])) {
$td_temp_image_url[2] = '';
}
//retina
$srcset_sizes = td_util::get_srcset_sizes($this->post_thumb_id, 'td_265x198', $td_temp_image_url[1], $td_temp_image_url[0]);
}
} else {
$td_temp_image_url[1] = '265';
$td_temp_image_url[2] = '198';
$td_temp_image_url[0] = TDC_URL_LEGACY . '/assets/images/no-thumb/td_265x198.png';
$attachment_alt = 'alt=""';
$attachment_title = '';
}
$post_data['post_thumb_url'] = $td_temp_image_url[0];
$post_data['post_thumb_width'] = $td_temp_image_url[1];
$post_data['post_thumb_height'] = $td_temp_image_url[2];
$post_data['post_thumb_alt'] = $attachment_alt;
$post_data['post_thumb_title'] = $attachment_title;
$post_data['post_thumb_srcset_sizes'] = $srcset_sizes;
}
/**
* post category
*/
$selected_category_obj = '';
$selected_category_obj_id = '';
$selected_category_obj_name = '';
//read the post meta to get the custom primary category
$td_post_theme_settings = td_util::get_post_meta_array($this->post->ID, 'td_post_theme_settings');
if ( !empty( $td_post_theme_settings['td_primary_cat'] ) ) {
//we have a custom category selected
$selected_category_obj = get_category($td_post_theme_settings['td_primary_cat']);
} else {
//get one auto
$categories = get_the_category($this->post->ID);
if ( is_category() ) {
foreach ( $categories as $category ) {
if ( $category->term_id == get_query_var('cat' ) ) {
$selected_category_obj = $category;
break;
}
}
}
if ( empty($selected_category_obj) and !empty($categories[0]) ) {
if ( $categories[0]->name === TD_FEATURED_CAT and !empty($categories[1]) ) {
$selected_category_obj = $categories[1];
} else {
$selected_category_obj = $categories[0];
}
}
}
$post_data['post_cat_link'] = '';
$post_data['post_cat_name'] = '';
$post_data['post_no_cat'] = '';
if ( !empty($selected_category_obj) ) {
$selected_category_obj_id = $selected_category_obj->cat_ID;
$selected_category_obj_name = $selected_category_obj->name;
}
if ( !empty($selected_category_obj_id) && !empty($selected_category_obj_name) ) {
$post_data['post_cat_link'] = get_category_link($selected_category_obj_id);
$post_data['post_cat_name'] = $selected_category_obj_name;
} else {
$post_data['post_no_cat'] = 'td-mod-no-cat';
}
/**
* post date
*/
$td_article_date_unix = get_the_time('U', $this->post->ID);
$post_data['post_date_unix'] = date(DATE_W3C, $td_article_date_unix);
$post_data['post_date'] = get_the_time(get_option('date_format'), $this->post->ID);
return $post_data;
}
}
]]>
The plugin doesn’t work with WPBakery’s Page Builder nor does it work with Elementor. Not sure why as they seem to open the same image finder box? It works within Gutenberg though? I would imagine it’s very simple to add support as tons of other image plugins don’t have this issue.
]]>There is a conflict that prevents the Unsplash tab from showing when Wicked Folders Pro is used,
]]>You know what would be a game changer …
If this plugin would automatically load & set a picture as featured image, based on the post title (or tags).
So one doesn’t have to search for an image manually and posts without an featured image are history.
Just a thought.
]]>I’ve installed and configured the plugin but when I try to search for images, the window with the Unsplash’s search field keeps loading and not load/finding any pictures.
]]>I installed the plugin directly from within WordPress. No problems — but when I select an image to upload, it never completes. I just get the spinning wheel and a message that the plugin is still processing the image. Left it for ten minutes just to be sure, and there was no change.
Unsplash isn’t my only image source, so I’m also using another plugin for image optimization, as well as a Lazy Load plugin. I don’t know whether the problem is a conflict with the other installed plugins, but maybe…any ideas?
]]>As a super admin I’d like to network activate the plugin and authorize it for all sites from the network control panel.
.. please ??
]]>Environment: WordPress Multisite 5.4.2 behind Varnish and Netgear LB and firewall.
PHP: 7.2.22
On a subsite (I also get a similar error on the main site), when I add an image, I get the following error:
/davidtest/wp-json/unsplash/v1/photos/import/iR8m2RRo-z4:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
media-selector.js?ver=b47e08fabd10c5bffe82f0407ac8f496:1 The uploaded file could not be moved to wp-content/blogs.dir/291/files/2020/07.
In New Relic, no server error is logged.
]]>I’ve tried to install the plugin on a few sites and I’ve found there is a conflict with some plugin, I’m not sure which one, that prevents the settings from loading or appearing in the menu. On one site I was able to get it to activate, but I haven’t been able to isolate which plugin(s) or combination is causing the issue. You may contact me privately and I can share the list of plugins for you to test again.
I will say on the one site I could get it working, it’s awesome!
]]>Plugin works great except no matter what option I use for size it is always too small of an image so the pictures are blurry. For example, if I do a full width at full size it will display at full width but use a smaller 640px wide image. When I inspect the image it shows the image being reduced. Here’s a direct link to one I tried: https://i0.wp.com/www.summerchilde.com/wp-content/uploads/2020/07/frank-mckenna-agz5hkren64-unsplash.jpeg?w=640&ssl=1
That ?w=640&ssl=1 added to the link makes the image blurry. How can we fix this?
edit: Jetpack is the cause of this. With the performance option for speeding up image load times it adds that width to the image.
edit 2: Changing the content width of the theme fixes the issue.
]]>Love that there’s now an official WordPress plugin! Does this work with Elementor? Elementor it currently used on 5 million sites, so this plugin really needs to be able to work with Elementor. Thx!
]]>Hi there,
Thanks for your official plugin!
I was eager to try it out but stumbled on a problem regarding assets not being loaded (404’s) .
E.g.:
https://testsite.local/wp-content/assets/css/admin-compiled.css?ver=1595410003 net::ERR_ABORTED 404
I tested this on a ‘Local‘ instance running on Windows 10.
A quick debug session shows that on your class Plugin_Base->locate_plugin() uses DIRECTORY_SEPARATOR. This is set to “\” while the actual separator is “/”, hence your relative_path method is ‘explode’-ing on the wrong seperator.
Kind regards,
Benny