{"id":8389,"date":"2021-04-26T21:25:00","date_gmt":"2021-04-26T19:25:00","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=8389"},"modified":"2021-04-26T09:19:59","modified_gmt":"2021-04-26T07:19:59","slug":"using-new-gatsby-source-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2021\/04\/26\/using-new-gatsby-source-wordpress-plugin\/","title":{"rendered":"Using New Gatsby Source WordPress Plugin"},"content":{"rendered":"<blockquote>\n<p>In my previous article, I discussed how I learned to create a decoupled WordPress powered Gatsby site using the Gatsby Source WPGraphQL plugin. The<\/p>\n<\/blockquote>\n<p>From: <em><a href=\"https:\/\/css-tricks.com\/using-new-gatsby-source-wordpress-plugin\/\">Using New Gatsby Source WordPress Plugin | CSS-Tricks<\/a><\/em><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/henrikwirth\/gatsby-starter-wordpress-advanced\">https:\/\/github.com\/henrikwirth\/gatsby-starter-wordpress-advanced<\/a><\/li>\n<\/ul>\n<p>Interesting but it seems to me a little betrayal of WordPress. Luckily <a href=\"https:\/\/github.com\/henrikwirth\/awesome-wordpress-gatsby\">henrikwirth in his awesome-wordpress-gatsby repository<\/a> clearly explain the rationale <\/p>\n<blockquote>\n<p><strong>Why Gatsby and WordPress?<\/strong><\/p>\n<p>WordPress is one of the <strong>most used CMS in the world<\/strong> and therefore many people already know how to work with it. The typical front-end approach with PHP-based templates is getting more and more problematic in an environment where performance is key. The approach to use WordPress as a headless CMS with normal API calls through JavaScript already exists, but also has the downside of having to make requests to the server and rendering depending on the response. This adds time to load. <strong>Gatsby instead, pre-renders the whole site at compile time<\/strong> and therefore the user gets a <strong>fully prepared static site on their first request<\/strong>, making it one of the <strong>best approaches for performance<\/strong>. Another huge benefit is <strong>security<\/strong>, as your WordPress instance can be anywhere, even locally and you don&#8217;t need to expose any of it to the user. <strong>The static Gatsby site therefore, is not hackable.<\/strong> Find further arguments for pros and cons in the resources below.<\/p>\n<\/blockquote>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">In my previous article, I discussed how I learned to create a decoupled WordPress powered Gatsby site using the Gatsby Source WPGraphQL plugin. The From: Using New Gatsby Source WordPress Plugin | CSS-Tricks https:\/\/github.com\/henrikwirth\/gatsby-starter-wordpress-advanced Interesting but it seems to me a little betrayal of WordPress. Luckily henrikwirth in his awesome-wordpress-gatsby repository clearly explain the rationale&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2021\/04\/26\/using-new-gatsby-source-wordpress-plugin\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[61],"tags":[],"class_list":["post-8389","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-2bj","jetpack-related-posts":[{"id":13803,"url":"https:\/\/monodes.com\/predaelli\/2025\/07\/21\/wordpress-statistics-plugin\/","url_meta":{"origin":8389,"position":0},"title":"WordPress Statistics plugin","author":"Paolo Redaelli","date":"2025-07-21","format":false,"excerpt":"\u00a0 Get website traffic insights with GDPR\/CCPA compliant, privacy-friendly analytics. Includes visitor data, stunning graphs, and no data sharing. Source: WP Statistics \u2013 The Most Popular Privacy-Friendly Analytics Plugin \u2013 Plugin WordPress | WordPress.org Italia The base version of this plugin is quite better than the base service provided by\u2026","rel":"","context":"In &quot;Basilica's website&quot;","block_context":{"text":"Basilica's website","link":"https:\/\/monodes.com\/predaelli\/category\/basilicas-website\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11628,"url":"https:\/\/monodes.com\/predaelli\/2024\/05\/05\/added-a-plugin-to-the-wordpress-directory-heres-what-to-do-next-david-artiss\/","url_meta":{"origin":8389,"position":1},"title":"Added a plugin to the WordPress directory? Here\u2019s what to do next | David Artiss","author":"Paolo Redaelli","date":"2024-05-05","format":false,"excerpt":"Once you\u2019ve had your plugin accepted into the WordPress.org directory, there are a few steps that I\u2019d highly recommend any developer doing before moving on. Source: Added a plugin to the WordPress directory? Here\u2019s what to do next | David Artiss Added a plugin to the WordPress directory? Here\u2019s what\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3350,"url":"https:\/\/monodes.com\/predaelli\/2017\/09\/11\/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings-managewp\/","url_meta":{"origin":8389,"position":2},"title":"WordPress SSL Settings and How to Resolve Mixed Content Warnings &#8211; ManageWP","author":"Paolo Redaelli","date":"2017-09-11","format":"link","excerpt":": WordPress SSL Settings and How to Resolve Mixed Content Warnings - ManageWP WordPress SSL Settings and How to Resolve Mixed Content Warnings September 6, 2012 Tips & Tricks 109 Building a website consists of a varied number of steps, depending on the owner, creator, manager, type of site, and\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2017\/09\/WordPress-HTTP-to-HTTPS.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9419,"url":"https:\/\/monodes.com\/predaelli\/2022\/06\/03\/home-bluejay-software-di-inventariazione-open-source\/","url_meta":{"origin":8389,"position":3},"title":"Home &#8211; BlueJay, Software di inventariazione open source","author":"Paolo Redaelli","date":"2022-06-03","format":false,"excerpt":"Da seguire con interesse Inserimento e gestione dati archivistici, archivi sul web, esportazione in formato XML ICAR, stampa in PDF, plugin per CMS WordPress. Source: Home - BlueJay, Software di inventariazione open source","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/monodes.com\/predaelli\/category\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8448,"url":"https:\/\/monodes.com\/predaelli\/2021\/05\/25\/the-wordpress-plugin-boilerplate\/","url_meta":{"origin":8389,"position":4},"title":"The WordPress Plugin Boilerplate","author":"Paolo Redaelli","date":"2021-05-25","format":"link","excerpt":"The WordPress Plugin Boilerplate A Foundation For Building High-Quality WordPress Plugins Today's lesson is: before reading books like WordPress Plugin Development Cookbook - Second Edition read the fine, official documentation!","rel":"","context":"In &quot;Wordpress&quot;","block_context":{"text":"Wordpress","link":"https:\/\/monodes.com\/predaelli\/category\/wordpress\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2021\/05\/boilerplate.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2021\/05\/boilerplate.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2021\/05\/boilerplate.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2021\/05\/boilerplate.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2021\/05\/boilerplate.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2021\/05\/boilerplate.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":6628,"url":"https:\/\/monodes.com\/predaelli\/2020\/02\/03\/slides-presentations-wordpress-plugin-wordpress-org\/","url_meta":{"origin":8389,"position":5},"title":"Slides &#038; Presentations \u2013 WordPress plugin | WordPress.org","author":"Paolo Redaelli","date":"2020-02-03","format":false,"excerpt":"https:\/\/wordpress.org\/plugins\/slide\/","rel":"","context":"In &quot;Wordpress&quot;","block_context":{"text":"Wordpress","link":"https:\/\/monodes.com\/predaelli\/category\/wordpress\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/8389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=8389"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/8389\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=8389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=8389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=8389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}