Hello!
I am trying to show all my posts from my wordpress website. Currently there are 2 posts, you can see it in the json file:
View
export class HomePage {
url: string = ‘http://feederhorgasz.000webhostapp.com/wp-json/wp/v2/posts?_embed?filter[orderby]=date&order=asc’;
items: any;constructor(public navParams: NavParams,public navCtrl: NavController, private http:Http) {
console.log('Passed params', navParams.data);
}
ionViewDidEnter() {
this.http.get( this.url )
.map(res => res.json())
.subscribe(data =>
{
this.items = data;
console.log(“átadott wp api”,data);});
}
However when i am trying to read from the json, it is listing only one object. (i can see it in the log)