內容簡介
該外掛旨在為用戶提供在文章中上傳多個縮略圖/特色圖片的功能。它使用 wp.media js 對象打開圖像上傳器框架,並選擇/上傳圖像。一旦選擇了圖像,它將在自定義字段中保存已上傳媒體對象的 ID。
獲取已上傳的圖像
您可以使用函數 aoc_get_images($post_id) 檢索已經上傳到文章中的圖像的網址數組。該函數接受文章的 ID(要檢索圖像的文章)作為參數。
外掛標籤
開發者團隊
原文外掛簡介
This plugin aims at providing users the capability to upload multiple thumbnails/featured images to a post. It uses wp.media js object to open a image uploader frame and choose/upload images. Once the images are selected, it will save the id of uploaded media object in a custom field.
Getting uploaded images
You can use the function aoc_get_images($post_id) to retrieve an array of urls of all the images that have been uploaded to a post. This function accepts the id of post (for which the images are to be fetched) as a parameter.
