• I have a custom post type which list models, I need to somehow query the custom post type list of models and get a result / receive the model though the chrome extension.

    Building the extension would not be too hard, your web app containing the mysql db would need a lightweight api to allow the extensions to easily query for the records. This API would simply return the data (say JSON) and the extension could parse the returned data for info.

    Can anyone help with this? I’m confused

    I’m using wordpress as the light weight api?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There’s nothing light weight about WordPress! It’s powerful and adaptable, but light weight it is not.

    I would build a stand alone PHP app that connects and queries the WP DB using solely native PHP mysql_*() functions to find all custom post types in the posts table that meet some criteria passed in the request. Then json_encode() the results, and after sending appropriate headers, echo out the JSON response.

    By custom coding the API, you are assured that it is as lightweight as possible.

Viewing 1 replies (of 1 total)
  • The topic ‘Output custom post type query to chrome extension?’ is closed to new replies.