Hi folks,
I’ve been trying to implement SEO head tags based on the following article:
https://docs.frontity.org/api-reference-1/frontity-head-tags
I did the following:
- Installed Yoast SEO
- Added meta tags to my pages/custom post types
- Installed REST API - Head Tags
- All of the head tags are exposed by the api
- On Frontity project I added the package frontity-head-tags
- No errors, all good
Now, the problem is that my meta tags are working only for pages, but not for my custom post type which in this case are Services. For Services, the title, description and other tags are randomly picked from another page. In this case, I see title from the Privacy page on every custom post type page (services/:slug).
Do I have to manually configure title in my component for my custom post type like it’s done with the isPostType like this:
if (data.isPostType) { ... load and set the title here }
So that I need to do something like this:
if (data.isServicesPostType) { ... load and set the title here }
Thank you very much in advance.