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.
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.