Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 971 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 971 Bytes

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: