Skip to content

Export The Seo Framework data into WordPress Rest API posts and pages endpoint under meta

License

Notifications You must be signed in to change notification settings

massimomarazzi/rest-api-meta-tsf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rest API Meta for The Seo Framework

WordPress Plugin export The Seo Framework data into WordPress Rest API posts and pages endpoint under meta. Now export only meta data for singular object (posts, pages and attachments).

Usefull if you use Gatsby with WordPress. In your src/templates/post.js make GraphQL query

export const query = graphql`
 query( $wpid: Int! ) {
   wordpressPost ( wordpress_id:{ eq:$wpid } ){
           id
           slug
           title
           content
           excerpt
           date
           modified
           meta{
             _genesis_title
             _genesis_description
           }
           
     }
   }
 `  

More info:

About

Export The Seo Framework data into WordPress Rest API posts and pages endpoint under meta

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages