Problem:
How can I set another (predefined) image if the Posts featured image is left empty?
Solution:
There are 3 options:
1. use HTML Conditional to actually display a predefined image in case no Featured Image is saved for the post. This does not update the post, it just displays this in the front end.
2. Save a default image when the post is saved without a Featured image with custom code
3. use a Plugin that does #2 above.
The first solution is achievable within Toolset, the second not.
Both are documented on below links:
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-fields-and-other-elements-for-emptynon-empty-values/#checking-if-a-post-has-a-featured-image
https://www.wpbeginner.com/wp-themes/how-to-set-a-default-fallback-image-for-wordpress-post-thumbnails/
https://enviragallery.com/how-to-set-a-default-featured-image-in-wordpress/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 4 replies, has 2 voices.
Last updated by 5 years, 9 months ago.
Assisted by: Beda.