Schedule image post on download
Use transition_post_status instead. Reference: https://codex.wordpress.org/Post_Status_Transitions
Use transition_post_status instead. Reference: https://codex.wordpress.org/Post_Status_Transitions
Welcome to WordPress Stack Exchange community. Actually adding media directly to uploads folder, will not be shown in WordPress Media Library as those images which you have added manually in upload folders are not stored in the database. However, if you manually use image path then they will be accessible but it will not get … Read more
The issue is that images URLs are stored in the database as a full URL; domain and all. When you move a site to a new URL, that doesn’t update the URLs in the database. So a ‘search and replace’ process is needed to go through the database and replace your www.olddomain.com with your www.newdomain.com … Read more
wp_get_attachment_image_src calling wrong location
Editor User Role can’t see other users media
Okay, the issue was my last regular expression that changed the http: to https: did not save. I reran the expression again and refreshed the page and it worked. Here’s the gist of how to do this (with wp cli) for anyone who comes across this. In the original site directory: wp db export This … Read more
Currently I’ve achieved a somewhat acceptable solution by using the do_shortcode_tag filter as mentioned in this answer, and using get_post_meta to fetch the value, as mentioned in this answer. There are (at least!) two caveats, however: The id in do_shortcode_tag‘s $attr isn’t the attachment post ID, but rather the CSS id from the original shortcode. … Read more
Query all images with certain tag in media library using visual portfolio plugin
This is what that section looks like to me. Are you sure your not adding custom fields some where? Are you trying to use the “Link To” setting for an image block? See below.
Update WP Media Library image unattended