I'm trying to loop through my json posts but im getting an error
-
I have 4 posts on my website which I have converted to json format using the plugin.
I now want to loop though the json posts to get the ID of each but im getting this error “<?php var_dump($json->wp-json->posts[1]->ID); ?>”
i think the “wp-json” name is the error, any change the name of that to something else?
- The topic ‘I'm trying to loop through my json posts but im getting an error’ is closed to new replies.