Skip Navigation

[Fermé] [Types] Show custom post field, in Editor page, only if Featured Image was set

This support ticket is created Il y a 7 années et 9 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 10:00 - - - - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 5 réponses, has 3 voix.

Last updated by Mohammed Il y a 7 années et 8 mois.

Assisted by: Mohammed.

Auteur
Publications
#416685

Hello,
I would like to know the correct conditional rule to show, in post editor page, a Types custom post field (that I made), ONLY if featured image was set.

I can add rules based on other Types field easily, but I need help in this case, since WP fields are not showed in the dropdown selection.

Thank you

#417075

Dear Sanny,

As our document mentioned:
When you are editing content that has Post Fields, some fields should be displayed conditionally.
https://toolset.com/documentation/user-guides/types-custom-fields-conditional-display/

It works only on the conditions on custom post fields, but not works for the feature image field.

I your case, I suggest you create another custom image field, then follow above document to setup your custom conditions on the image fields.

#417292

Oh ok. I thought the Advanced text mode was meant to be used for more complex stuff and other fields.. you confirm that even that, is only for Types fields?

Using custom js added to the editor page itself should work though.
Do you maybe have already a snippet I could adapt to this, by any chance?
eg. https://toolset.com/forums/topic/evaluate-wpv-featured-image-is-not-empty/ or https://toolset.com/forums/topic/conditional-field-required-when-visible/

#417459

this thread is using [wpv-if] shortcode to check the feature image in front-end, but you need it in admin side.
https://toolset.com/forums/topic/evaluate-wpv-featured-image-is-not-empty/

The another thread:
https://toolset.com/forums/topic/conditional-field-required-when-visible/
Which is using CRED form, I don't think it is what you need, if you are going to do it with custom JS codes, it needs custom codes, which is out the range or our support range:
https://toolset.com/toolset-support-policy/
I suggest you check out our certified partners for it:
https://toolset.com/consultant/

#422936

I know it's not for Types, that's why I asked if there was a similar way, without using a custom solution.

It would be great if we didnt have to pay a third party from now on, for every request of help on how to use your plugin.
Thank you anyway.

#423082

Hi Sanny,

This is Mohammed from Toolset second tier support.

I've checked the thread and I see that may be adding the support for standard post fields in the custom conditions will solve your issue.

To be honest, I'm not authorized to promise you to implement such a feature.
But if you agree, I can escalate this ticket to out development team leader who can discuss this with you and take the appropriate decision accordingly.

I'm waiting for your reply.

Thanks and regards.

Le sujet ‘[Fermé] [Types] Show custom post field, in Editor page, only if Featured Image was set’ est fermé à de nouvelles réponses.