Skip Navigation

[Resolved] mandatory image in the project section

This support ticket is created 3 years, 7 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.

This topic contains 2 replies, has 2 voices.

Last updated by enricoP 3 years, 7 months ago.

Assigned support staff: 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+01: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!