Ronaldo Barbachano

Interacts with the Wordpress JSON API plugin to retrieve Wordpress data.

Comes with very bare bones templates and sends back all the data/fields to all publications. Includes a basic template with single post view functionality (as well as a way to go back.)



wordpress = new Meteor.Collection("wordpress");

To a shared file. And then


To a clientside file. Finally;

{{#each wpPosts}}

In a template (html) file.



The main publication where site is the wordpress site (with the plugin installed) including slash. If no directive is provided it will default to the latest posts response (?json). Your plugin installation may support the 'pretty urls' or not. Otherwise provide it with the appropriate query string for the data you'd like to retrieve.


This may not play nice with use of the "main" wordpress publication. So its recommended using one or the other.


This is like the publication except it returns the raw response (as an object). Check this document for more on how to query the api. For now it appends the question mark(?).

Handlebar helper

wpPost - use this helper to fetch the data from the collection wordpress, if provided with an ID should only return a single post of that ID. {{wpPost _id}}

Extra notes

The wordpress ID is used as the mongo _id. For now posts with matching ID's aren't upserted. Subscriptions return all fields to the client.

Built With

Share this project: