Hot answers tagged

2

The better title for this would be: How to use the WordPress media uploader to upload images into settings page. 1- Add the necessary scripts to show the media uploader: add_action('admin_footer', function() { /* if possible try not to queue this all over the admin by adding your settings GET page val into next if( empty( $_GET['page'] ) || "...


1

By default, when you upload an image via the admin, it's metadata is added to the database, and that's how you can search through them in the media library etc. If you upload images via ftp then they won't appear in the DB so won't show up in the admin area. Use a plugin such as https://wordpress.org/plugins/media-from-ftp/ which will let you loop through ...



Only top voted, non community-wiki answers of a minimum length are eligible