Load images from CDN and custom features to “Add Media” dialogue
Load images from CDN and custom features to “Add Media” dialogue
Load images from CDN and custom features to “Add Media” dialogue
Uploading directly to the wp-content/uploads folder using FTP or likewise will not make it show up in the Media Library. The files have been uploaded successfully, but WordPress requires the media ID to be added to the database. Only once the media ID is added to the WP database do the files show up in … Read more
Media is the post type (post_type=”attachment”), so most operations are done with wp post command. By default, wp post manage blog posts (post_type=”post”), therefore by fetching post IDs you must add –post_type=attachment indicating the type of posts. And to update media meta you should use wp post meta update <id> <key> <value> Your entire command … Read more
How can I change the page title of PDFs opened from a WordPress link which use the browser’s viewer?
I sort of solved the problem by using the plugin Media Sync to add all the image files in the wp-content/uploads folder. I was able to see all the image files in the Media Library. I then deleted the files I was not using on my website. I don’t know what happened, but it is … Read more
Images have dissapeared from media library and site
Yes, you can do this. First set up a loop that loops through all the images in the upload directory. Then construct an array with the required data needed to create a new post of the type attachment: $dir = new DirectoryIterator(wp_upload_dir()[0]); foreach ($dir as $maybeFile) { if ($maybeFile->isFile()) { $filename = $maybeFile->getPathname(); $wp_filetype = … Read more
I fixed it. It was the :// issue. Using a sql editor, I saw that the site was pointing to https:///[domain].online. Not sure why changing that in the wordpress admin interface did not fix it, but removing the extra slash in the database fixed it.
Upload to a specific media folder created by FileBird Lite
How to bulk edit taxonomies for attachments