JavaScript for WordPress › Forums › Bugs & Issues › 1.6.08 – VanillaPress V 0.2 – Pages This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago by Zac Gordon. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts July 16, 2017 at 6:47 am #29992 Justin EstradaParticipant If your getting an error from the data.js file it’s because after the pages array of objects their is no comma to set the jsonData variable July 16, 2017 at 6:55 am #30002 Justin EstradaParticipant Also my model.getPosts function works better like this: model.getPosts = function() { // var posts = JSON.parse( model.getLocalStore() )[‘posts’]; var posts = model.getLocalStore(); posts = posts[‘posts’]; return posts; } Instead of the commented out line. July 20, 2017 at 3:15 pm #30096 Zac GordonKeymaster Thanks for the corrections and points Justin!!! Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In