[WordPress] 外掛分享: Stock Images

首頁外掛目錄 › Stock Images
10+
安裝啟用
尚無評分
3560 天前
最後更新
問題解決
WordPress 4.5.0+ v1.0 上架:2016-06-17

內容簡介

從自己的主機庫導入照片和圖像。

添加了一個shortcode,以訪問您的圖像。 [stockimage width=”450″ height=”300″ name=”my-photo.jpg”]

安裝後,編輯設置>常規>股票圖像URL下的您的存庫URL。

所有照片都可以從已配置的url中指向。

例如,如果您指向http://www.example.com/stock-images/%s作為您的URL,在上面的示例中,您的照片將作為http://www.example.com/stock-images/my-photo.jpg訪問。您可以通過FTP或類似方式在stock-images/路徑中放置照片。

如果您正在描述產品或其他內容,它可以是您媒體庫的非常創造性的替代方案。您將完全控制要提供的圖像。

設置基本股票圖像主機

在您的FTP帳戶中創建一個名為stock-images的文件夾,該文件夾可以從您的網站訪問。在其中放置所有已優化的圖像。使用空index.php文件停止目錄列表。可選地,配置.htaccess以從未經授權的網站或直接圖像下載器直接訪問/熱鏈接到您的圖像。

將您的URL配置為指向此文件夾。

然後,[stockimage width="450" height="300" name="my-photo.jpg"]模式將指向您的特定圖像,如<img src='http://www.example.com/stock-images/my-photo.jpg' width='450' height='300'>。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

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

原文外掛簡介

Import photos and images from your personally hosted stock images.
Adds a shortcode to access your images. [stockimage width=”450″ height=”300″ name=”my-photo.jpg”]
After installation, edit the URL of your stock image repository at: Settings > General > Stock Image URL.
All your photos can be pointed from your configured url.
For example, if you pointed to http://www.example.com/stock-images/%s as your URL, your photos will be accessed as http://www.example.com/stock-images/my-photo.jpg in the above example. You can drop photos inside stock-images/ path via FTP or similar.
It can be a very creative replacement of your media library, and works better if you are describing a product or something else. You will have a total control of images to be served.
Setting up a basic stock image hosting
Create a folder named stock-images inside your FTP account which is accessible from your website. Drop in all your optimized images there. Stop directory listing with an empty index.php file. Optionally configure .htaccess for direct/hot-linking into your images from unauthorised websites or direct image downloaders.
Configure your URL to point into this folder.
Then the pattern [stockimage width="450" height="300" name="my-photo.jpg"] will point to your specific image as .

延伸相關外掛

文章
Filter
Apply Filters
Mastodon