Pass multiple tags slug to rest API

You’re getting the error because the URL format is invalid — that & there is invalid because there’s no ? in the URL: wp-json/w1/unica/posts/unica-12-1&interact, but even if you actually added the ?, that’s not how to pass multiple slugs to the API. So how can you pass multiple slugs to your custom endpoint? register_rest_route( ‘w1/page_name/’, … Read more

Performance of WordPress Rest API vs WordPress Feeds

Feeds can be easily cached (even put them on CDN), API caching is a more complex thing. So this covers the performance issue. But there is also the code and maintenance side… APIs are more flexible as you can change the structure of the request and response to whatever you need and not limeted to … Read more

Require()/Include() post template adding extra content

The problem is within the get_post function. After looking through the documentation for include() and require(), which includes the *_once() variations of the functions, the problem seemed to be that it was returning a Boolean on whether the template had been included/required or not without throwing an error. After changing how the template was requiring/including … Read more