Skip Navigation

[Resuelto] Filter a View on a Hidden Field

This support ticket is created hace 3 años. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Shane hace 3 años.

Asistido por: Shane.

Autor
Mensajes
#2212005

I would like to create a view that shows the most active bbPress topics. However, bbPress stores this information in hidden fields so they do not appear in Views. Some examples are listed here:

_bbp_last_active_time
_bbp_reply_count
_bbp_voice_count

For example, I might want to run a view that shows topics active within the last week having at least 3 voices in the conversation and 5 replies.

Is there a way to do this with Views? Thanks.

- Aaron

#2212173

Shane
Supporter

Idiomas: Inglés (English )

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

Hi Aaron,

Thank you for getting in touch.

Given that these are hidden custom fields you will need enable them to be shown in views. Go to Toolset -> Settings -> Frontend Content and under Hidden Custom fields use the Select Custom Fields button to select the hidden fields you want to be available in views.

Please let me know if this helps.
Thanks,
Shane

#2212231

Thanks - that's great. I was able to find two out of the three hidden fields. Is there any reason why one of them wouldn't be coming up even though there's data in the database? Specifically, the meta-key '_bbp_last_active_time' has data but does not show up in the list of fields I can add in the Toolset settings. Unfortunately, this is the most important one for me because I want to show forums with recent activity.

- Aaron

#2212315

Shane
Supporter

Idiomas: Inglés (English )

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

Screenshot 2021-11-03 at 4.40.44 PM.png

Hi Aaron,

I did a quick setup of the BBpress forums plugin and I was able to find the field.

Ensure that you've setup at least one forum and that forum has a topic with a reply. See Screenshot

Thanks,
Shane