這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Fake Image Replacer

外掛說明

When developing a theme, you need to insert dummy content to test if your content is well rendered. Maybe sometimes, you’ll want to change pictures sizes in the middle of the development process for example, and then you’ll need either to upload back your pictures or regenerate thumbnails. This is where this plugin kicks in.

With WP Fake Image Replacer you don’t need to upload pictures. Just use the_post_thumbnail() function wherever you want and the plugin auto generate a fake image holder. Just change the thumbnail size whenever you want and the plugin generates automatically a new fake image.

It’s work with ACF (Advanced Custom Fields) from version 4.0. Just use image and gallery fields as usual.

Switch to presentation mode : show your client the website with beautiful random pictures from Flickr. Uses Flickr API.

Third party :
– Ivan Malopinsky holder.js library (GPLv2 licenced).
– Flickr API

安裝方式

Just activate the plugin. The plugin hooks the_post_thumbnail() function and auto generate a fake image if no post thumbnail is defined.

常見問題集

How can I define thumbnail sizes ?

As usually, juste use the set_post_thumbnail_size() and add_image_size() in functions.php and use the_post_thumbnail(‘size’) in your template file.

How to make it work with ACF ?

Just as usal. Use examples from ACF support site and WP Fake Image Replacer generates fake images for image field and gallery.

What is Developer mode and Presentation mode ?

Developer mode is the default mode during theme developpement process with fakes images (fast and work offline)
Presentation mode display random pictures from Flickr, in order to show the website to your clients.

使用者評論

2016 年 9 月 3 日
I often switch image sizes when designing. And the presentation feature is perfect for showing clients.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Fake Image Replacer〉的開發相關工作。

參與者

將〈WP Fake Image Replacer〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.6

  • fixed : set default values for first time

1.5

  • You can now set a Flickr pictures theme

1.4

  • Developer Mode & Presentation Mode
  • Display random popular Flickr pictures in developer mode
  • Added WP color picker for custom theme colors

1.3

  • Options page
  • Custom text on images
  • 3 color themes
  • Make your own custom themes
  • Internationalization
  • French translation

1.2

  • Advanced Custom Fields plugin support (image and gallery fields)
  • Code cleaned

1.1

  • Dummy images are now generated by holder.js
  • Works even offline

1.0

  • Generates fake images by hooking the post thumbnail function