We have just released the REST API - Head Tags WordPress plugin that adds all the tags in the <head>
section of your website to the WordPress REST API responses, and @frontity/head-tags package to consume this data automatically.
This way, by just installing both of them, your SEO plugins like Yoast or All in One SEO Pack will work by default.
Special thanks to @David for his work on this!
Installation guide
- Install the WordPress plugin in your WordPress. If you have questions on how to do so you can visit our docs.
- Install the Frontity package in the root of your project.
> npm install @frontity/head-tags
- Add the package name in
frontity-settings.js
.
"packages": [
// other packages ...
"@frontity/head-tags"
// other packages ...
]
Thatβs it! You donβt need to configure any settings. All your head tags will be automatically added.
If you have an existing project make sure your @frontity/wp-source package is at least on the 1.5.0 version. If not, update it using this command:
> npm install @frontity/wp-source@latest
Documentation
Packages updates
Apart from the release of the new package, some minor changes have been made to the following packages.
To keep Frontity and its packages updated, you can follow this guide of our documentation.
@frontity/head-tags
1.0.0
Major Changes
Patch Changes
@frontity/source
1.1.0
Minor Changes
-
e887fa1
#242 Thanks @DAreRodz! - Change the name of entity types and add new ones:- Change
PostType
toPostEntity
- Append
Entity
to all other entity types. - Add
PostType
andTaxonomyType
for the objects that represent entity types. From WordPress, those types come from/wp/v2/types
andwp/v2/taxonomies
endpoints respectively.
- Change
@frontity/types
1.2.0
Minor Changes
@frontity/wp-source
1.5.0
Minor Changes
-
6ac389b
#242 Thanks @DAreRodz! - Add a schema for post types and refactor populate. Use also the new types that come from@frontity/source
.