Theming With WP REST API - Part 03 - Add Images To API
Автор: Watch and Learn
Загружено: 2016-03-23
Просмотров: 12151
In this episode we are going to learn how to add images to our WordPress REST API and then display those images with Vue.js.
We are going to be using standard WordPress functionality to get the URLs of our images, and then we are going to return that data via function in our ```functions.php``` file.
As you will see in this tutorial series we are going to manipulate WP REST API quite a bit to get the data that we want, from just one API request and just one API endpoint. That will make our theme much faster because of the fewer requests to database and the REST API.
Of course after that is all done we will display said images using Vue.js.
Code used in this tutorial
https://goo.gl/0SdPCa
http://watch-learn.com/video-tutorial...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: