JavaScript for WordPress › Forums › Bugs & Issues › 1.6.08 – VanillaPress V 0.2 – Pages › Reply To: 1.6.08 – VanillaPress V 0.2 – Pages
July 16, 2017 at 6:55 am
#30002
Participant
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.