0
通過使用..../wp/v2/pages/... wp/v2/posts /我可以顯示帖子/頁面標題(item.title.rendered)。但作者姓名或發佈日期可以' t由(item.author.rendered)或(item.date.rendered)顯示。如何在離子2應用程序中顯示wp頁面/帖子作者姓名?
通過使用..../wp/v2/pages/... wp/v2/posts /我可以顯示帖子/頁面標題(item.title.rendered)。但作者姓名或發佈日期可以' t由(item.author.rendered)或(item.date.rendered)顯示。如何在離子2應用程序中顯示wp頁面/帖子作者姓名?
獲取作者ID,然後使用/wp/v2/users/id
WP-JSON/WP/V2 /用戶/ ID ....其顯示紫禁城頁..403故宮錯誤 –
你有沒有嘗試添加您的用戶名和密碼的頭? https://code.tutsplus.com/tutorials/wp-rest-api-setting-up-and-using-basic-authentication--cms-24762 –