
內容簡介
如果您想定義自己的自訂圖像大小,請在 function.php 檔案中使用 add_image_size() 函式。這些圖像大小將顯示在管理儀錶板中。
有關如何添加自定義圖像大小的詳細信息,可以在此處找到: https://codex.wordpress.org/Function_Reference/add_image_size。
外掛標籤
開發者團隊
② 後台搜尋「Image Sizes in Admin Dashboard」→ 直接安裝(推薦)
原文外掛簡介
Image Sizes in Admin Dashboard adds a read-only widget to the WordPress admin Dashboard that lists all currently registered image sizes.
Any size you register in your theme or plugin with add_image_size() is picked up automatically, alongside the built-in thumbnail, medium, medium_large and large sizes. Each row shows:
The image size name (human readable)
Width in pixels (— when unconstrained)
Height in pixels (— when unconstrained)
Crop mode (Cropped or Proportional)
This is handy when building a theme and you need a quick reference of the exact dimensions available to the_post_thumbnail() and the media library.
More detail on registering custom image sizes: https://developer.wordpress.org/reference/functions/add_image_size/
