How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?

ACF has the ability to create a ‘Theme Options’ page which you can then use to conveniently centralise options for things like headers and footer etc.. ACF Options Page information As Jacob Peattie rightly points out, how you integrate this into Gatsby is outside of the scope of WPSE and may require custom development. However, … Read more

Add image to each podcast series (or category) in headless WordPress instance [closed]

I think it would be prudent to create a new custom taxonomy now named podcast in order to categorize your episodes separate from other content. Whether using a custom podcast taxonomy or generic categorys, taxonomies do not support attached media or featured images out of the box. You’ll likely need to store a media attachment … Read more

WordPress as a CMS – best way to decouple publishing/front-end

To disable WP frontend and WP REST API output, create an empty theme, i.e. ‘My Empty Theme’ in /wp-content/themes/myemptytheme/, that contains 3 files: style.css index.php functions.php style.css may contain the theme name only: /* Theme Name: My Empty Theme */ index.php – leave it empty functions.php – include the following code to disable REST API … Read more

Only expose routes with prefix /wp-json on WordPress using Apache

Try the following mod_rewrite directives instead at the top of your root .htaccess file (before the # BEGIN WordPress section): # Reject any user requests that are not prefixed “/wp-json” RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule !wp-json($|/) – [F] Requested URLs that are not prefixed /wp-json (or /wp-json/) are rejected with a 403 Forbidden. The RewriteCond directive … Read more