javascript - How to display more posts -


i receiving json object contains posts wordpress account, getting around 15 posts, should more amount ?

the json looks this

{  id: 4164,  title: "24 horas non-stop con marco carola",  status: "publish",  type: "post",  author: {   id: 11,   username: "vilma quiros",   name: "vilma quiros",   first_name: "vilma",   last_name: "quiros",   nickname: "vilma quiros",   slug: "vilma-quiros",   url: "",   avatar: "",   description: "",   registered: "2015-04-16t07:04:04+00:00",   meta: {    links: {    self: "http://urbanetradio.com/wp-json/users/11",    archives: "http://urbanetradio.com/wp-json/users/11/posts"   }  } }, content: "<p class="p2"><a href="http://urbanetradio.com/wp-content/uploads/2015/05/prueba-1.png"</p> <p><iframe src="https://www.youtube.com/embed/av6namjdyne" width="750" height="422" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p> ", parent: null, link: "http://urbanetradio.com/24-horas-non-stop-con-marco-carola/", date: "2015-05-08t18:42:33", modified: "2015-05-08t20:20:10", format: "standard", slug: "24-horas-non-stop-con-marco-carola", guid: "http://urbanetradio.com/?p=4164", excerpt: "<p>el pasado fin de semana, marco carola dio un show maratónico en el festival sunwaves 2015 al mezclar por no menos de 24 horas seguidas. &#8230;</p> ", menu_order: 0, comment_status: "closed", ping_status: "open", sticky: false, date_tz: "america/costa_rica", date_gmt: "2015-05-09t00:42:33", modified_tz: "america/costa_rica", modified_gmt: "2015-05-09t02:20:10", ... 

i sending request http://urbanetradio.com/wp-json/posts

here docs api http://wp-api.org/

and can't see in json way bigger above, kind of property/attribute mentioning post increasing.

you can display more posts using ?filter[posts_per_page]=30

edit: seem doesn't work (not example provided in docs should work)

http://urbanetradio.com/wp-json/posts?filter[posts_per_page]=8&filter[order]=asc 

so assuming have problems configuration somehow.

if won't work after try reconfig, suggest alternative: json api plugin, worked me , too.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -