elementor / elementor/elementor
Loop widget on a single post template modifies data of following widgets which rely on the current post
- 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 open and closed tickets and cannot find a duplicate.
- [X] I have troubleshooted my issue, and it still exists against the latest stable version of Elementor.
### Description
When you are in the editor on a single post template, if you add a loop widget (I tried loop carousel and loop grid). Data of all following widgets that rely on the current preview post are incorrect. No problem on frontend.
### Steps to reproduce
I made a screen recording. The loop template contains just posts' title. Below the loop, there is a post title widget.
No problem when you edit but if you reload the editor, the title of the template is displayed instead of the current post title.

### Expected behavior
The post title widget should contain the current post title
### Isolating the problem
- [x] This bug happens when only the Elementor (and Elementor Pro) plugins are active.
- [x] This bug happens with the Hello Elementor theme active.
- [x] I can reproduce this bug consistently by following the steps I described above.
### Elementor System Info
Click to reveal
````txt
== Server Environment ==
Operating System: Linux
Software: Apache
MySQL version: (Ubuntu) v5.7.42
PHP Version: 8.0.30
PHP Memory Limit: 128M
PHP Max Input Vars: 1000
PHP Max Post Size: 20M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 6.5.2
Site URL: https://www.elementor.example.fr
Home URL: https://www.elementor.example.fr
WP Multisite: No
Max Upload Size: 20 MB
Memory limit: 40M
Max Memory limit: 256M
Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
Language: en_US
Timezone: Europe/Paris
Debug Mode: Active
== Theme ==
Name: Hello Elementor
Version: 3.0.1
Author: Elementor Team
Child Theme: No
== User ==
Role: administrator
WP Profile lang: en-US
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
== Active Plugins ==
Elementor
Version: 3.21.0-dev3
Author: Elementor.com
Elementor Beta (Developer Edition)
Version: 1.1.3
Author: Elementor.com
Elementor Pro
Version: 3.21.2
Author: Elementor.com
== Features ==
Custom Fonts: 0
Custom Icons: 0
== Integrations ==
== Elementor Experiments ==
Improved Asset Loading: Active by default
Improved CSS Loading: Active by default
Inline Font Icons: Active by default
Additional Custom Breakpoints: Active by default
admin_menu_rearrangement: Inactive by default
Flexbox Container: Active by default
Upgrade Swiper Library: Active by default
Grid Container: Active by default
Nested Elements Performance: Inactive by default
Optimized Control Loading: Active by default
Default to New Theme Builder: Active by default
Hello Theme Header & Footer: Active by default
Elementor Home Screen: Inactive by default
Editor Top Bar: Active by default
Build with AI: Active by default
Landing Pages: Active by default
Nested Elements: Active by default
Lazy Load Background Images: Active by default
Pages Panel: Inactive by default
Display Conditions: Active by default
Form Submissions: Active by default
Menu: Active by default
Taxonomy Filter: Active by default
== Log ==
Log: showing 20 of 362024-04-12 09:58:31 [info] Elementor/Upgrades - _v_3_16_0_container_updates Finished
2024-04-12 09:58:31 [info] Elementor/Upgrades - _v_3_17_0_site_settings_updates Start
2024-04-12 09:58:31 [info] Elementor/Upgrades - _v_3_17_0_site_settings_updates Finished
2024-04-12 09:58:31 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.12.0-dev4',
'to' => '3.21.0-dev3',
)]
2024-04-12 09:58:31 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.12.0-dev4',
'to' => '3.21.0-dev3',
)]
2024-04-12 09:59:30 [info] elementor-pro::elementor_pro_updater Started
2024-04-12 09:59:30 [info] Elementor Pro/Upgrades - _on_each_version Start
2024-04-12 09:59:30 [info] Elementor Pro/Upgrades - _on_each_version Finished
2024-04-12 09:59:30 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.11.0-dev2',
'to' => '3.21.0-beta3',
)]
2024-04-12 09:59:30 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.11.0-dev2',
'to' => '3.21.0-beta3',
)]
2024-04-17 00:07:52 [info] elementor-pro::elementor_pro_updater Started
2024-04-17 00:07:52 [info] Elementor Pro/Upgrades - _on_each_version Start
2024-04-17 00:07:52 [info] Elementor Pro/Upgrades - _on_each_version Finished
2024-04-17 00:07:52 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.21.0-beta3',
'to' => '3.21.0',
)]
2024-04-17 00:07:52 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.21.0-beta3',
'to' => '3.21.0',
)]
2024-04-17 00:07:53 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.21.0-beta3',
'to' => '3.21.0',
)]
2024-05-06 12:30:45 [info] elementor-pro::elementor_pro_updater Started
2024-05-06 12:30:45 [info] Elementor Pro/Upgrades - _on_each_version Start
2024-05-06 12:30:45 [info] Elementor Pro/Upgrades - _on_each_version Finished
2024-05-06 12:30:45 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.21.0',
'to' => '3.21.2',
)]
PHP: showing 4 of 4PHP: 2023-12-05 01:50:58 [notice X 1][../wp-content/plugins/elementor/includes/base/controls-stack.php::229] Invalid characters passed for attempted conversion, these have been ignored [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> rest_error_handler()
#1: ../wp-content/plugins/elementor/includes/base/controls-stack.php(229): class type hexdec()
#2: ../wp-content/plugins/elementor/includes/widgets/accordion.php(534): Elementor\Controls_Stack -> get_id_int()
#3: ../wp-content/plugins/elementor/includes/base/controls-stack.php(2268): Elementor\Widget_Accordion -> render()
#4: ../wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack -> render_by_mode()
',
)]
PHP: 2024-05-06 12:31:05 [notice X 13][../wp-content/plugins/elementor/includes/base/controls-stack.php::229] Invalid characters passed for attempted conversion, these have been ignored [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-05-06 12:32:13 [warning X 4][../wp-content/plugins/elementor/modules/history/revisions-manager.php::363] Undefined array key "editor_post_id" [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-05-06 12:33:49 [warning X 6][../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
'trace' => '
#0: ../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(150): Elementor\Core\Logger\Manager -> rest_error_handler()
#1: ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> normalize_template_json_item()
#2: ../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(59): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> normalize_templates_json()
#4: ../wp-content/plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
JS: showing 2 of 2JS: 2024-04-12 08:06:54 [error X 1][../wp-content/plugins/elementor/assets/js/editor.js?ver=3.21.0-dev3:40584:71] Cannot read properties of undefined (reading 'toLowerCase')
JS: 2024-05-06 10:31:58 [error X 1][../wp-content/plugins/elementor/assets/js/editor.js?ver=3.21.0-dev3:57705:29] currentElement is null
== Elementor - Compatibility Tag ==
Elementor Pro: Compatible
== Elementor Pro - Compatibility Tag ==
````
### Agreement
- [X] I agree that my issue may be closed without action if it doesn't meet all the requirements.
Contributor guide
Assessment
This issue has not been assessed yet.