Get full size img width/height from Post API query
-
I am working on a headless WordPress project, using the WordPress API and Gutenberg blocks. I added some code from here that exposes all Gutenberg Blocks to the API. That is working great.
For each image block in a Post I would like to include the full size width and height. Is there a way to do that on the WordPress side and add the result to the main Posts query? This is to avoid having to query for Posts on the front end, and then make an additional query for using the image id for each image block in a Post.
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get full size img width/height from Post API query’ is closed to new replies.