[WordPress] 外掛分享: AOC Multiple Post Images

首頁外掛目錄 › AOC Multiple Post Images
10+
安裝啟用
尚無評分
2388 天前
最後更新
問題解決
WordPress 4.6+ PHP 5.2.4+ v0.4 上架:2018-05-15

內容簡介

該外掛旨在為用戶提供在文章中上傳多個縮略圖/特色圖片的功能。它使用 wp.media js 對象打開圖像上傳器框架,並選擇/上傳圖像。一旦選擇了圖像,它將在自定義字段中保存已上傳媒體對象的 ID。

獲取已上傳的圖像

您可以使用函數 aoc_get_images($post_id) 檢索已經上傳到文章中的圖像的網址數組。該函數接受文章的 ID(要檢索圖像的文章)作為參數。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「AOC Multiple Post Images」→ 直接安裝(推薦)

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon