hide attached images of a post

My first recommendation would be to use Advanced Custom Fields to setup a gallery rather than using this method.

However, I think you may be able to load your images using Add Media -> Create Gallery which will add a shortcode to your post content


You could then use the_content filter and strip_shortcodes to remove this shortcode from the_content(); on your template. Hopefully you can then use get_post_gallery() or get_post_gallery_images() to retrieve the images you need for your carousel.

But try Advanced Custom Fields – it’s much easier!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)