Set Attachment Image File URL as GUID
Set Attachment Image File URL as GUID
Set Attachment Image File URL as GUID
I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?
Check out this search and replace plugin. The benefit of using an absolute URL is that you can easily find and replace it, either with the plugin linked above or an SQL statement or even using some built in WordPress API’s. So I wouldn’t do anything differently the next time. I used the search and … Read more
In a nutshell – GUID is not supposed to hold meaningful data and the fact that at this moment the data in it happens to be meaningful is coincidental. WordPress does no verification whatsoever that GUIDs mean anything. They are not guaranteed to stay immutable if you rely on that and they are not changed … Read more
Add guid filter to attachment in media library grid mode
How to introduce Permalinks into pop-u-lar widget?
There’s a filter for that. I use: function ts_feed_spruce_get_the_guid($content) { // double ? is ok as guid is not a url // ‘&’ gets esc_url’ed and doesn’t work anyway $content .= ‘?d=’ . get_the_modified_time(‘YmdHisT’); return $content; } add_filter(‘get_the_guid’, ‘ts_feed_spruce_get_the_guid’, 7); Drop it in your theme functions.php or a plugin.
The FeedWordPress Duplicate Post Filter add-on might take care of this faster than trying to hunt down the root cause. It’ll probably turn out to be a problem in the feed itself, which you wouldn’t likely have any control over. Despite the formats being fairly simple and well-documented, many sites/applications just can’t seem to produce … Read more
How to identifty post from its URL in 404 page?
The GUID is not an URL. Use get_permalink() to get the correct URLs. Just ignore the GUID. It is – as the name says – an identifier.