airesvsg / acf-to-rest-api

Exposes Advanced Custom Fields Endpoints in the WordPress REST API
https://wordpress.org/plugins/acf-to-rest-api/
1.33k stars 111 forks source link

X-WP-Total & X-WP-TotalPages are missing on headers #286

Open buroli opened 5 years ago

buroli commented 5 years ago

Hi,

It seems that these headers X-WP-Total & X-WP-TotalPages (available with post type) isn't available on acf. Any solution to recover them ?

Thanks.

dottodot commented 5 years ago

In my case I was able to use the wp-json/wp/v2 endpoints rather than the wp-json/acf/v3 endpoints and that gave me the headers.

danielbenjamins commented 5 years ago

Same problem here, but changing from v3 to v2 didn't work...

kamilduleba commented 4 years ago

Hi, I had same problem. It doesnt have X-WP-Total & X-WP-TotalPages headers values, but you are not limited to 100 posts per request. But i think you still need to do pagination manually. /wp-json/acf/v3/posts/?per_page=111 will give you 111.

gtsvetanov commented 4 years ago

Hello please take a look at my pull request #358

I've made fixes about this issue and the issue with not handled errors