#31907 closed defect (bug) (worksforme)
get_post_gallery()["src"] sometimes return empty on list views.
| Reported by: | odie2 | Owned by: | antpb |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Gallery | Version: | 4.1 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
Description
Hello,
As wrote there: https://wordpress.org/support/topic/bug-get_post_gallery-on-7th-execution, sometimes get_post_gallery()["src"] is empty on list views (like post format view, main page pagination etc.)
Only ["src"] is not added to array (ids etc. are there), so it's returning false for if statement.
Greetings
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In the screenshot provided in the support issuehttps://wordpress.org/support/topic/bug-get_post_gallery-on-7th-execution/ (pictured below) this looks to be a problem with a plugin that modifies gallery view. The slider/pagination option does not seem to be available by default. Also mentioned in the support issue was that the example site was a modified version of twentyfourteen.
I've replicated gallery views in and unmodified twentyfourteen instance with 11 posts. All showed to be uniform on the main page (with pagination)
@odie2 can you confirm that this is still an issue? Maybe I'm missing something.
Below is the provided example from the support issue: