This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use this only for the metabox script of Rilwis - http://www.deluxeblogtips.com/p/meta-box-script-for-wordpress.html#images | |
// the code below shows the image with a link to itself (to be used on thickbox overlays) | |
global $wpdb; | |
$meta = get_post_meta(get_the_ID(), 'sl_screenshots', false); | |
$meta = implode(',', $meta); | |
$images = $wpdb->get_col(" | |
SELECT ID FROM $wpdb->posts | |
WHERE post_type = 'attachment' |
NewerOlder