Add guid filter to attachment in media library grid mode

I’m trying to show in media modal box, attachments from a specific folder in my website and, correct me if I’m wrong, the best way to proceed is a like filter on wp_posts field GUID. Something like and ({$wpdb->posts}.guid LIKE ‘%/uploads_media_news/%’)). Problem is I don’t really know where to apply this filter: is it better … Read more

One reason for changing the GUID

I create product custom posts from an external data suscription, populating some custom fields and displaying product specifications automatically. As there are a lot of these products, the manual review of each one is made after the custom post have been already published. And it is at that moment when I want my readers to … Read more

How to change all the guid in posts table?

Recently I have transferred my WordPress from development server to live server. I noticed that I have to change all the “guid” with live domain url. Is there any mysql query or simple function available to change it easily. 6 s 6 It should be something like: UPDATE wp_posts SET guid = REPLACE(guid, ‘oldurl.com’, ‘newurl.com’) … Read more

Moving WP install from local to live, what about wp_posts GUID?

Done this before and i am still wondering what to do with the wp_posts => guid content, which has reference to http://localhost But at wordpress.org documentation it clearly states: Never, ever, change the contents of the GUID column, under any circumstances. But as i understand it is just to unique identify your posts globally. But … Read more