I fully localized this great plugin to zh_TW, and I found some I18N issues.
Modified codes are listed as the following.
image-licensing-schema.php Line 174 (Typo)
<?php esc_html_e( 'Public Domain (CC0)', 'image-licensing-schema' ); ?>
image-licensing-schema.php Line 309 (Combine two parts to complete sentence)
<?php printf(esc_html__( 'Choose an existing page of your site %1$sor create a new one%2$s', 'image-licensing-schema' ),'<a href="' .admin_url( '/post-new.php?post_type=page' ) . '" target="_blank" class="imalisch_external_link">','</a>'); ?>
image-licensing-schema.php Line 405 (Typo)
<label for="imalisch_settings_cc0_<?php echo $i; ?>"><?php esc_html_e( 'CC0 Public Domain', 'image-licensing-schema' ); ?></label>
]]>
Hi,
Google is still detecting the licensing schema code on all images after I’ve deleted the plugin. Is the plugin lets some datas after the deletion ? How can I fix this bug please?
Regards
Choosing a custom license in the plugin causes the url to fail.
Google requires an unadorned URL in the ‘license’ property. However, the plugin sets this to “license”: “https://custom”, and uses the ‘acquireLicensePage’ property for a URL that also includes potentially unwanted url parameters. See below for an example:
<script type="application/ld+json">
[{"@context": "https://schema.org/",
"@type": "ImageObject",
"contentUrl": "https://eatingasturias.com/wp-content/uploads/2022/02/My-Asturias-New-Beginnings-curro--300x300.jpg",
"license": "https://custom",
"acquireLicensePage": "https://eatingasturias.com/impressum/image-copyright-licensing/?license-policy=1&id=14194&src=https%3A%2F%2Featingasturias.com%2Fwp-content%2Fuploads%2F2022%2F02%2FMy-Asturias-New-Beginnings-curro--300x300.jpg"},
{"@context": "https://schema.org/",
"@type": "ImageObject",
"contentUrl": "https://eatingasturias.com/wp-content/uploads/2022/02/My-Asturias-New-Beginnings-chicken--300x300.jpg",
"license": "https://custom",
"acquireLicensePage": "https://eatingasturias.com/impressum/image-copyright-licensing/?license-policy=1&id=14194&src=https%3A%2F%2Featingasturias.com%2Fwp-content%2Fuploads%2F2022%2F02%2FMy-Asturias-New-Beginnings-chicken--300x300.jpg"
}]</script>
The obvious solution is to insert the url chosen in the plugin into the ‘license’ property, and provide a separate field for including another url in the ‘acquireLicensePage’ property as the site owner requires.
]]>When using the Custom option, the output is including rogue "https://custom"
in the page code that is prompting a Google Search Console error (Invalid URL in field “license”). It’s happening for each image on the page.
A valid page is selected as the licensing policy page, and that page’s URL is being inserted into the “acquireLicensePage” field, but the “license” field is being output as "https://custom"
.
An example below (I’ve replaced the domain name):
"license": "https://custom","acquireLicensePage": "https://exampledomain.com/license-policy/?license-policy=1&id=14016&src=https%3A%2F%2Fexampledomain.com%2Fwp-content%2Fuploads%2F2019%2F04%2F13-2-678x452.jpg"},{"@context": "https://schema.org/","@type": "ImageObject","contentUrl":
Hi @audrasjb,
Nice plugin! I would like to propose that you support Unsplash license. Also to make it easier to credit the photo author’s if possible.
Many, many thanks! ????
]]>Hi
i Used the plugin for about a month, it’s working correctly however I noticed that now indexed pages on my webmaster console is decreasing day by day till I only got 4 valid pages out of 76
using fetch pages , webmaster tool and screaming frog gave an error Failed to parse JSON-LD data for all pages, the rest URL which previously already indexed are now goes into category Indexed, not submitted in sitemap and doesn’t perform well in serp
If we click on URL detail, there no additional information(mark up error or something like that)
]]>Hi
Thank you for your interesting work and this useful plugin. But I am confused if the plugin works just on posts. On pages or Easy digital download posts I can’t find anything from the plugin settings. Will there be this kind of changes in the next future?
Thank you for your answer & greetings from Switzerland
]]>This plugin, and its ability to set per-image licensing, is just what we’ve been looking for. Thanks!
However, we use just one image per post (the featured image), and the plugin’s “Manage images licensing” widget displays one of two things:
“No image in this post yet.”
OR
“You can change default license for all your website’s images using Media Settings. “Custom” license type/url is also managed in Media Settings. …. Here is the list of the images currently used in this post (save and refresh if you added more images). You can change their settings.”
(and then no images)
Also, wouldn’t this be best handled on the media item’s page? Thanks.
]]>