Can part of my WordPress website be headless?

You can mount a react or a vue app partially into a page, so what you ask is theoretically possible but probably not the best solution. You may consider expanding the react application a bit and go fully headless. In this case, next.js (based on react) might be a better solution as it will allow … Read more

Update Loop with Form

Yes, AJAX is the way to go. Basically, you can write your own callback function for WP’s ajax hook in your theme’s functions.php file. And then your function can return data in any format you choose. I generally return JSON. I’ll walk you through setting it up. First, since it doesn’t appear that your visitors … Read more

How WordPress converts URL to $query_string

Check out WP::parse_request() – unfortunately, it was never really designed for public use. You could try this, not sure of the repercussions: global $wp, $wp_the_query; // Grab the request_uri component of the referer URL. if ( ! $url = parse_url( $_GET[‘my_referer_parameter’] ) ) return ‘Oh dear, poorly formed referer.’; // Ewww! Trick WP::parse_request by spoofing … Read more