The following adds a field called primaryCat field when using The SEO Framework WordPress Plugin
Free open-source WordPress plugin that turns any WordPress site into a GraphQL API
The following adds a field called primaryCat field when using The SEO Framework WordPress Plugin