Etch Loops: Show Featured Image or Post Title Using Conditional Logic
Автор: Tech Articles
Загружено: 2025-12-29
Просмотров: 5
In this video, I walk through a simple, real-world example of using conditional logic inside an Etch loop.
A question came up in the Etch community about how to display either a post’s featured image (thumbnail) or the post title when looping through posts — especially when some posts have images and others don’t.
To demonstrate, I:
Create a basic loop for a Business custom post type
Use no styling, just clean functionality
Show how to wrap elements in Etch conditions
Handle posts with and without featured images
Explain why checking for an empty image URL works reliably
The result:
Posts with a featured image show the image
Posts without a featured image automatically fall back to the post title
If you found this helpful, please like, comment, and subscribe.
🔧 Tools I Use:
Some links may be affiliate links, but I only recommend tools I use and trust. If you’re buying anyway, I’d appreciate you used my links:
SureForms: https://ta0.uk/sureforms - A clean WordPress form interface
Gridpane: https://ta0.uk/gridpane - My WordPress Hosting Panel of Choice
SureCart: https://ta0.uk/surecart - My Current Store of Choice
SureMembers:https://ta0.uk/SureMembers - Membership Plugin works with the stack
OttoKit: https://ta0.uk/suretriggers - My Hosted Automation of choice
SurelyWP: https://ta0.uk/surelywp - The Best SureCart Addons
InstaWP: https://ta0.uk/InstaWP - My Dev Environment of Choice
FlowMattic: https://ta0.uk/flowmattic - My Automation Tool of Choice (Self-Hosted)
Wpvivd: https://ta0.uk/wpvivid - My backup tool of choice
WPCodebox - https://ta0.uk/wpcodebox
☕ Support Me:
Buy Me a Coffee: https://ta0.uk/coffee
Visit My Site: https://techarticles.co.uk
Join the Facebook Group: https://ta0.uk/fb
📄 Information:
Affiliate Disclosure: https://techarticles.co.uk/policy/aff...
💬 Questions? Drop them in the comments!
🚀 Don't forget to Like & Subscribe for more WordPress tutorials!
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: