0

I am building my Blog and i would like to use a carousel on top of the Post page if i add more than 1 image to my post. Can this be done in the theme functions.php or is there a plugin for this? I did find a get_attached_media function to get all the URL's from the attached images in a post, But now i need to actually put them in a slider that shows on the single post page.

$attachments= get_attached_media( 'image', $post->ID );
foreach($attachments as $att_id => $attachment) {
    $full_img_url = wp_get_attachment_url($attachment->ID);
    // function
}

Thanks in advance

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.