get_post_gallery_images()
-
In version 5.1.6 of WordPress get_post_gallery_images() function works perfectly when used in my theme. When I updated to the 5.4.2 version this function might have a bug? It returns false (indicating there are no gallery blocks in the post).
I checked and made sure I was passing in the correct post id (I was) and that the post I was passing in actually had gallery blocks(it does).
Can someone help me find a way around this? I need to get access to the urls of the images in the first gallery of a post. You can see why this function was perfect for me.
I wasn’t sure if I should create a bug report. I tried to find anything similar about this but didn’t. Im very new to WordPress forums, not so new to theme development though.
- The topic ‘get_post_gallery_images()’ is closed to new replies.