Saltar navegación

[Resuelto] Filtering for populated embedded media custom fields only (not empty)

This support ticket is created 4 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Zona horaria del colaborador: America/Jamaica (GMT-05:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane 4 years, 7 months ago.

Asistido por: Shane.

Autor
Mensajes
#2222269

Tell us what you are trying to do? I have created a custom field group, one of the custom fields is an embedded media field (YouTube URLs). Not all posts using this field group have embedded media, I am trying to create a view that will filter only the posts with the embedded media field populated (e.g. not empty) so that I can display only the videos.

Is there a similar example that we can see? I can set this up easily for you.

What is the link to your site? using a staging area, enlace oculto

Searching on your site it seems someone had the same issue before and it was resolved, however the solution is not on the post. https://toolset.com/forums/topic/i-need-a-view-that-filter-content-by-embed-media/

Any help appreciated.
Thank you.
Michael.

#2222607

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

HI Michael,

Thank you for getting in touch.

You should be able to filter this by using our Conditional block. The conditional block will allow you to check if a field is NOT empty and then display your content if the field isn't empty.

For a more detailed description of the conditional block as well as how to use it you can have a look at our documentation link below.
https://toolset.com/course-lesson/using-toolset-conditional-block/

Thanks,
Shane