Get JSON from self hosted wordpress site

This is a WordPress setting you can change. Login to the WP admin panel, click Settings > Reading, change “Syndication feed show the most recent” from the default 10 items to something higher, and click Save. If you don’t see the change immediately, try clearing the recent cache in your browser, or open the link … Read more

wp_query – show pages that have parent defined

To get only child pages (pages that have parent selected), you can use this query: http://example.com/api/get_posts/?post_type=page&posts_per_page=1&orderby=rand&post_parent__not_in[]= And that should also give you the answer for your second question, I guess 😉 If you want to pass array(1=>’foo’, 2=>’bar’) as param called my_array, you should use this query: …&my_array[1]=foo&my_array[2]=bar