Creating a virtual, data-driven section of a Wordpress-powered site

Posted by lgomez on Stack Overflow See other posts from Stack Overflow or by lgomez
Published on 2010-04-21T23:00:01Z Indexed on 2010/04/21 23:03 UTC
Read the original article Hit count: 186

Filed under:
|
|
|
|

Hello all,

I want to create a plugin for wordpress to automatically serve pages containing data pulled from a provider's API.

The API returns one or more records containing data for that record and I simply want to have the plugin intercept the request, call the API with parameters pulled from the request URI and display the data using a template that I can either let them upload to the server or let them copy and paste into the plugins admin settings.

For example, I may want one of my wordpress installations to show products pulled from such an API under the url "example.com/products". The plugin would catch that request, extract the variables from the URL, call the API and render the template with the returned results.

I'd like to avoid requiring editing the .htaccess file like some caching plugins do. Some of the admins of these pages won't know how to do that or simply won't have access to the .htaccess file.

Thanks!

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about plugins