Find only those galleries with images

I believe that a relatively simple meta_query would do it. $args = array( ‘post_type’ => ‘post’, ‘meta_query’ => array( array( ‘key’ => ‘_gallery_image_ids’, ‘value’ => ”, ‘compare’ => ‘EXISTS’ ) ) ); $query = new WP_Query( $args ); Reference: http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters

Where to insert the other site image url for our wordpress post

Read about wp_insert_attachment(), wp_update_attachment_metadata() and wp_generate_attachment_metadata() To add an attachment, use wp_insert_attachment() example: <?php $wp_filetype = wp_check_filetype(basename($filename), null ); $wp_upload_dir = wp_upload_dir(); $attachment = array( ‘guid’ => $wp_upload_dir[‘url’] . “https://wordpress.stackexchange.com/” . basename( $filename ), ‘post_mime_type’ => $wp_filetype[‘type’], ‘post_title’ => preg_replace(‘/\.[^.]+$/’, ”, basename($filename)), ‘post_content’ => ”, ‘post_status’ => ‘inherit’ ); $attach_id = wp_insert_attachment( $attachment, $filename, 37 … Read more

Display pictures instead of text in menus

This would be my solution to the problem if you want to make edits on the back-end(Admin area) in the site at any time. If you want a static menu just insert step 1 where you needed it and skip the rest. Hope it helps! Your CODE will look similar to this: Step 1) Create … Read more

Hiding Media Source Links

Link to none would only remove the hyperlink from the media. If the user clicks on the media, the media will not open separately in a window / tab. There is no way to hide the link to the resources. There is no security threat of accessing other files from external user.