Skip Navigation

[Resolved] Conditional based on image

This support ticket is created 5 years, 8 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Minesh 5 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1231474

Hi,

month ago i used this conditional for appear, or disapper, content based on the logo company image and it works. Im not able to figure out how to setup this process right now.

Could you check my conditional below? I would like to setup process if user add logo company image that will allow him to continue, but if he dont add logo company he will not be able to continue.

<div id="podminka">
[wpv-conditional if="( '[types usermeta='logocompany' output='raw' user_is_author='true']' eq '' )"] You cannot add article without image <a href="<em><u>hidden link</u></em>">ZDE</a>
[/wpv-conditional]
</div>

Thanks

#1231491

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - can you please tell me where exactly you were using the conditional statement?

Is it possible for you to share problem URL and access details with me?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1231654

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I see you added following view and the view is set to filter by author who is logged in user:

[wpv-view name="dashboard-logo-podminka"]

But when I see the post for post type: firemni-profil, I see different post author is set so with above view there is no posts to display with above view.
=> hidden link

And you want to check the image is uploaded or not for the field "Logo společnosti" available with following post - correct?
=> hidden link