I need to filter by the Yoast primary category. In my site I have multiple CPT's and each have a custom Taxonomy. The problem I am having is the Taxonomy I need to filter by is not appearing in settings.
The field does exist as I can output it within the view.
I have been through the settings of a CPT and Taxonomy that is appearing and compared it to the one that isn't. The set up is identical (apart from the names of course). I've flushed the cache and updated permalinks but I'm not sure why this specific one cannot be found.
The field in question: _yoast_wpseo_primary_video-category
_yoast_wpseo_primary_category is a custom field, not a taxonomy.
Having exposed it in the settings (as per your screenshot), it is then available to use in custom field query filters (not taxonomy filters), as you can see in the screenshot.
I misspoke or didn't explain myself correctly. I understand that _yoast_wpseo_primary_video-category is a custom field, it stores the primary category of 'Video Category'.
As you'll see within my screenshot, '_yoast_wpseo_primary_video-category' isn't there so I'm not able to use it within views. That's the problem I am having.
Referring to CPT and Taxonomies, though it added confusion, I was checking that 'Video Category' had been set up correctly. As that's the only custom field for the Yoast primary category that I can't select.
I've performed some tests on my website and just like Nigel, I had no difficulty in enabling that hidden custom field, for the query filter.
Can you please make sure that at least one of the posts has a record for this custom field "_yoast_wpseo_primary_video-category"?
( i.e. at least one of the posts has a term for "video-category" taxonomy set as primary )
After that, you can clear all involved caches once again and then check the section for the hidden custom fields again.
In case the issue still persists, you're welcome to share temporary admin login details, in reply to this message, for further troubleshooting.
Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.
regards,
Waqar
The topic ‘[Closed] Third party custom field (Yoast primary) not appearing in settings’ is closed to new replies.