i’m building a gallery using wordpress and i try to get all images included in a page,
so i have build an admin options page and from there i get the pages in a drop down and i have a problem filtering the content,
i use this code to get the images,
// Get the post ID
$galleryID = $artdev_get_gallery1;
// Get images for this post
$arrImages =& get_children(‘post_type=attachment&post_mime_type= image&post_parent=’ . $galleryID );
but i can’t filter the $artdev_get_gallery1 (is the drop down – page slug) to get the images from the selected page, it gets all the images from posts and pages also,
if i change the drop-down (to the admin area) to a text area and write the page id as a number i can filter the content.
i think that this is something simple but my knowledge is “newbie” and i can’t figure out how to do this.
if anyone have a solution on this i will be very thankful,