Problem:
I have a cred form for meal inputs and there is an optional field to add a featured image. I'd like this not to be blank if the user does not add an image, as this messes up views layouts of the meals in a loop with the featured image shown.
Is there a way to have a fall back default so that each post in the loop for a given Meal category has a featured image.
Solution:
In the post loop, I suggest you use [wpv-conditional] shortcode to check if featured image is empty, then display a default image, for example:
Relevant Documentation:
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.
Our next available supporter will start replying to tickets in about 2.28 hours from now. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)