elementor / elementor/elementor

🐞 Fallback image for the "Featured Image" Dynamic Tag isn't displayed on the frontend

Open
#28,093 3 comments 1 reaction 0 assignees View on GitHub
bug component/pro/dynamic-tag mod/v* product/pro type/experiment widget/pro/featured-image
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

"Featured Image" Dynamic Tags fallback image does not work if the post does not have any featured image. I checked the Elementor function for this option, and the condition is not working as expected.

### Steps to reproduce

1. Add a "Featured Image" Dynamic tag to a post loop
2. Add a fallback image
3. add a post with our Featured image

### Expected behavior

When a featured image is not found on the post then the fallback image will be work as featured image

### Isolating the problem

- [ ] 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

Operating System: Linux
Software: LiteSpeed
MySQL version: MariaDB Server v10.6.18
PHP Version: 7.4.33
PHP Memory Limit: 512M
PHP Max Input Vars: 3000
PHP Max Post Size: 128M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
WordPress Environment
Version: 6.5.5
Site URL: https://beta.pcbuilderbd.com
Home URL: https://beta.pcbuilderbd.com
WP Multisite: No
Max Upload Size: 128 MB
Memory limit: 40M
Max Memory limit: 512M
Permalink Structure: /%category%/%postname%/
Language: en_US
Timezone: Asia/Dhaka
Debug Mode: Inactive
Theme
Name: Hello Elementor Child
Version: 2.0.0
Author: Elementor Team
Child Theme: Yes
Parent Theme Name: Hello Elementor
Parent Theme Version: 3.1.0
Parent Theme Author: Elementor Team
User
Role: administrator
WP Profile lang: en-US
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Active Plugins
Classic Editor - 1.6.3 By WordPress Contributors
Elementor - 3.23.1 By Elementor.com
Elementor Pro - 3.23.0 By Elementor.com
LiteSpeed Cache - 6.2.0.1 By LiteSpeed Technologies
Features
Custom Fonts: 0
Custom Icons: 0
Integrations
Elementor Experiments
Improved CSS Loading: Active by default
Inline Font Icons: Active by default
Additional Custom Breakpoints: Active by default
Flexbox Container: Active by default
Grid Container: Active by default
Upgrade Swiper Library: Active by default
Nested Elements Performance: Active by default
Optimized Control Loading: Active by default
Optimized Markup: Inactive by default
Plugin Onboarding: Active by default
Default to New Theme Builder: Active by default
Header & Footer: Active by default
Elementor Home Screen: Active by default
Editor Top Bar: Inactive by default
Build with AI: Active by default
Landing Pages: Inactive by default
Nested Elements: Active
Lazy Load Background Images: Active by default
Element Caching: Inactive by default
Link In Bio: Inactive by default
Floating Buttons: Inactive by default
Elementor Editor Events: Inactive by default
Display Conditions: Active by default
Form Submissions: Active by default
Menu: Active
Taxonomy Filter: Active by default
Search: Inactive by default

````

### Agreement

- [X] I agree that my issue may be closed without action if it doesn't meet all the requirements.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.