Skip Navigation

[Resolved] mandatory image in the project section

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by enricoP 5 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1197091
2019-02-07 09_18_37-Modifica progetto ‹ Cve-italy — WordPress.png
2019-02-07 09_17_10-Progetti – Cve-italy.png

I am trying to: i don't want to have the mandatory image in the project section, because appearently if i don't have any image it shows up the error like it's a not found image

Link to a page where the issue can be seen: hidden link

I expected to see: if i don't have any image for this i don't want to see anything

Instead, I got: the error like in the attached image

#1197195

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

In English I think this is the featured image we are talking about.

Can I clarify the problem?

In your template to display a project you are outputting the featured image (using the wpv-post-featured-image shortcode), and the problem is that not all projects have a featured image, so you only want to output the featured image if the project post actually has one, is that correct?

If that is the case then the solution is described here: 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

Let me know if I understood correctly.

#1197390

My issue is resolved now. Thank you!