Create server side text from wordpress page

One issue with your original code is that the returned $queried_post is a php object, which can’t be output in whole with a simple echo. If you tried to echo a property of the object, like echo $queried_post->post_title; that might work. That said, I’d handle this with a rewrite endpoint to keep things self-contained. The … Read more