Skip Navigation

[Gelöst] Creating a archive with a filter

This support ticket is created vor 2 Jahre, 6 Monate. 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 – 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)

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by AndreG3332 vor 2 Jahre, 6 Monate.

Assisted by: Shane.

Author
Artikel
#2186695

Morning,

I am trying to create archives for my CPT user profiles.

I can do the archive and it works, however, one of the fields in the custom post type is "Directory entry". (radio buttons yes no). I need to only show the entries in the archive that has a value as yes. The directory entry must not show in the view of the profile.
I am a bit lost on the process to follow to achieve this.

#2186973

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andre,

Thank you for getting in touch.

I'm assuming here that you're building your archive using the Gutenburg block editor correct?

For the gutenburg block editor for archives you won't be able to add a manual query filter to achieve your goal. You will need to create your archive using the classic editor.

From there you should be able to add a query filter for your custom field to only display profiles where the field is selected as yes. You can still have the use of the gutenburg editor when creating the archive as it can be used for the content template section of your archive.

Please let me know if this helps.
Thanks,
Shane

#2190603

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.