# Creating Carousel with Image choices in Customizer

**URL:** <https://forum.pinegrow.com/t/creating-carousel-with-image-choices-in-customizer/3289>\
**Category:** Pinegrow WP\
**Created:** [August 27, 2019, 5:49pm UTC](https://forum.pinegrow.com/t/creating-carousel-with-image-choices-in-customizer/3289 "2019-08-27T17:49:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark\_l\_sanders](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/mark_l_sanders/32/2212_2.png) [@mark\_l\_sanders](https://forum.pinegrow.com/u/mark_l_sanders)\
**Post date:** [August 27, 2019, 5:49pm UTC](https://forum.pinegrow.com/t/creating-carousel-with-image-choices-in-customizer/3289/1 "2019-08-27T17:49:02Z")

</div>

Hi  
I’m creating a BS4 carousel and want to let users choose Images in the Customizer.  
Running into two issues/annoyances:

1. I can only assign a single ‘if’ statement to each node - if I want to check for a) is it home page; and b) has the theme-mod been selected, Pinegrow puts them both in as and ‘OR’ - using ‘||’ in the PHP…but I need them as an AND (&&). I can get round this using wrapper divs, but it’s unwieldy. Can I change this behaviour in some way?

2. I’d like to let users choose an image for the Carousel and then use the Image’s Title and Caption; I can use the Attachment Image action to display the image itself but I can’t find an Action to let me access the attachment’s Title or Caption. So: is there such an action?

Both of these would be fixed if I could attach some custom PHP to a node - I could write my own PHP using the WP functions; is this possible?

thanks very much for any responses.

---

<div class="post-metadata">

**Author:** ![mark\_l\_sanders](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/mark_l_sanders/32/2212_2.png) [@mark\_l\_sanders](https://forum.pinegrow.com/u/mark_l_sanders)\
**Post date:** [August 27, 2019, 6:50pm UTC](https://forum.pinegrow.com/t/creating-carousel-with-image-choices-in-customizer/3289/2 "2019-08-27T18:50:56Z")

</div>

Fixed both questions - I’ll leave them up in case anyone else has similar questions;

By using CTRL+H to see the code behind any node, I can simply type in the raw PHP - that allows me to have multiple conditions using AND, and I can use native WP functions (like get\_attachment\_title) even if there’s not PG equivalent (or if there is one but I can’t find it)!!
