can you help me plz how ??? i have alistview contain alot of elements take that in your mind >>> i think it will be made withh loop to fetch all src in each element right?
Split at <figure>
Then for each item in the list split at src="
Then from the second item in that list split at "> alt
Add result to list.
Remove any empty list items.
.
.
Or something like that.
<h2>first </h2>
<h3>second</h3>
<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="700" height="450" data-id="31209" src="img1.com" alt="" class="wp-image-31209"/></figure>
<figure class="wp-block-image size-large"><img decoding="async" width="700" height="450" data-id="31210" src="img2.com" alt="" class="wp-image-31210"/></figure>
</figure>
1 Like
thank you , you really survived me
1 Like




