Hello in this short Articles I am going to share how you can get data from your WordPress site on show it in list view in kodular. Below I Have shared the link to Download AIA
We are going to get data using RestAPI WordPress Function and then call data in list view in kodular application, I would Like to Thank @Dora_Paz for helping me in developing this application. I was able to build a Android App for my WordPress site ThePager which helps students get Free Certificate Courses & Internships.
Step 1)
To get your RestAPI link just add this at end of your WordPress Site โ/wp-json/wp/v2/posts/โ and just replace it from my link
Step 2 )
Create All the variables require, help? if you dont have knowledge of how to use variables in kodular kindly keep it same as in picture below
Step 3)
This is the final step where we get our data from WordPress and display it in list view
@ Juned_Adenwalla Thanks for sharing that awesome guide. Could you please tell me how I can show the details content in another screen, after clicking any of items in this list?
Well, I was working on the POST API of WordPress to post an article from an app as well, for your concerns I think just capture the post Id when the card is clicked and pass it through a variable to another screen and then call WordPress single post api by id.
API : yoursite.com/wp-json/wp/v2/posts/?filter[p]=470
Remove 470 and assign the variable where you have stored the post Id.
Hello, Coder Thanks for your help it works but when i tried in my website, it show only last 10 posts and please how to show picture of each post in the listview
and add this below code in same functions.php file to get more than 10 posts this should return between 99 - 200 posts, but always remember the higher amount of posts you request the higher is the speed impact