elementor / elementor/elementor
[⌛ Awaiting Feedback] 🧩 🐞 Bug Report: Pods Image field on taxonomy page is not rendered on Archive templates
- Dominant language
- PHP
- Stars
- 7.1k
- Forks
- 1.6k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 193
Description
### Prerequisites
- [X] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [X] The issue still exists against the latest stable version of Elementor.
### Description
When creating a custom taxonomy with an image field, this image is not displayed on the taxonomy pages.
Related: #5147
### Steps to reproduce
It is assumed that you already have Elementor Pro and Pods Admin installed.
1. Create a custom taxonomy and add the image field to it.
2. Fill out the taxonomy
3. Using Elementor Pro, create an archive template with the image widget, to which dynamically connect the image field or set a dynamic background for the container and attach this field to it.
4. Set the conditions for displaying the archive template.
5. Go to the taxonomy page and you will see that the image does not display.
### Possible Solution
An easy fix that worked for me, but after the update everything will break again
1. Go to elementor-pro/modules/dynamic-tags/pods/tags/pods-image.php
2. Go to line 47, and find code: `$pod = pods( $pod_name, get_the_ID() );`
3. Replace this code to `$pod = pods( $pod_name, get_queried_object_id() );`
4. Save the changes
I also looked at the code `elementor-pro/modules/dynamic-tags/pods/tags/pods-gallery.php`.
Line 46 also uses get_the_ID. I haven't checked, but maybe if there are similar problems from there, you can also solve it by replacing `get_the_ID()` with `get_queried_object_id()`.
### Isolating the problem
- [X] This bug happens with only Elementor plugin active (and Elementor Pro).
- [x] This bug happens with a Blank WordPress theme active ([Hello theme](https://wordpress.org/themes/hello-elementor/)).
- [X] I can reproduce this bug consistently following the steps above.
### System Info
System Info
````txt
Clean Install
== Server Environment ==
Operating System: Linux
Software: Apache/2.4.55 (Unix)
MySQL version: v5.7.21-20
PHP Version: 8.2.7
PHP Memory Limit: 268435456
PHP Max Input Vars: 10000
PHP Max Post Size: 1047527424
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 6.2.2
Site URL:
Home URL:
WP Multisite: No
Max Upload Size: 999 МБ
Memory limit: 40M
Max Memory limit: 256M
Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
Language: ru-RU
Timezone: 3
Admin Email:
Debug Mode: Inactive
== Theme ==
Name: Twenty Twenty-Three
Version: 1.1
Author: the WordPress team
Child Theme: No
== User ==
Role: administrator
WP Profile lang: ru_RU
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 YaBrowser/23.7.0.2526 Yowser/2.5 Safari/537.36
== Active Plugins ==
Elementor
Version: 3.14.1
Author: Elementor.com
Elementor Pro
Version: 3.14.1
Author: Elementor.com
== Features ==
Custom Fonts: 0
Custom Icons: 0
== Integrations ==
````
Contributor guide
Assessment
This issue has not been assessed yet.