Display Url in an Array

I’m attempting to make a slideshow that displays photos from an array. Below is a sample array from one post:

array (
  0 => 
  array (
    'attachment_id' => 263,
    'display_order' => 0,
    'featured' => false,
    'url' => 
    array (
      'full' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000x857-1.jpeg',
      'large' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000x857-1.jpeg',
      'medium' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000x857-1-300x257.jpeg',
      'drts_thumbnail' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000x857-1-240x180.jpeg',
      'drts_thumbnail_scaled' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000x857-1-210x180.jpeg',
      'drts_icon' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000x857-1-32x32.jpeg',
      'drts_icon_lg' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000x857-1-48x48.jpeg',
      'drts_icon_xl' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000x857-1-80x80.jpeg',
    ),
    'title' => 'Raw-Art-Works-youth-at-annual-block-party-in-Lynn-1000×857',
    'alt' => '',
  ),
  1 => 
  array (
    'attachment_id' => 264,
    'display_order' => 1,
    'featured' => false,
    'url' => 
    array (
      'full' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/crop.jpeg',
      'large' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/crop-1024x806.jpeg',
      'medium' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/crop-300x236.jpeg',
      'drts_thumbnail' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/crop-240x180.jpeg',
      'drts_thumbnail_scaled' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/crop-229x180.jpeg',
      'drts_icon' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/crop-32x32.jpeg',
      'drts_icon_lg' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/crop-48x48.jpeg',
      'drts_icon_xl' => 'https://lynnculturadev.wpengine.com/wp-content/uploads/2023/01/crop-80x80.jpeg',
    ),
    'title' => 'crop',
    'alt' => '',
  ),
)

This is what I have so far.

Container with a Dynamic Content Provider of {{dc:post:meta key="_drts_directory_photos"}}.
|_ > Slides set to Consumer All
|_ > Slide Background Image URL is {{dc:looper:field key="url.full"}}

This setup only shows the first image of the array. Here is a video of the setup in case its not clear:

Any idea what I need to change about this setup to get my slideshow to display each image in the array?

Hello @santosfel5,

Thanks for writing in! Please switch your Looper Provider from using “Dynamic Content” to “Array”. We would love to check your Looper settings. Would you mind providing us your WP details? You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.

@ruenel Thank you, I just added the secure note for you.

We are forcing only one value to be return from any given post meta value through dynamic content, but it’s a quick one to fix this issue. ACF does not have this issue currently. There will be an argument to change this and it’ll be something like the below in a release on Monday or next monday. I will keep this thread updated.

{{dc:post:meta key='key' multiple='true'}}

Okay, thank you. Let me know when this is released.

1 Like

Hey @santosfel5,

You can always check our changelog for new updates from time to time. Please stay tuned.

Cheers!

Okay, I tested this out with the latest update @charlie and it doesn’t appear to be working. Maybe you haven’t released the patch yet?

This will be in 6.1.1 for sure I just wanted to test a little more. Apologies for the wait. Also how were you creating that post meta? Was that all a custom plugin? Just want to be sure your use case will be fine. Have a great day!

The post is a custom post type being generated by a plugin called Directories Pro.

1 Like

Hey @santosfel5,

Thanks for the additioanl information! The current version is 6.1.0 and my colleague said, it will be applied in 6.1.1. Please stay tuned.

Thank you.

1 Like

I can confirm now that this works. Thank you for your assistance!

Hey @santosfel5,

You’re welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.