Navigation überspringen

[Gelöst] Creating a archive with a filter

This support ticket is created vor 3 Jahren, 2 Monaten. 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 -

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

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von AndreG3332 vor 3 Jahren, 2 Monaten.

Assistiert von: 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

Sprachen: Englisch (English )

Zeitzone: 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!