跳到内容

My WP Photos

v1.0

mdburnette · 2023年11月30日 上架

Display your WordPress Photo Directory photos as a shortcode or Gutenberg block gallery.

正在使用
10 以下
评分
5.0 / 5
累计下载
2,312
最近更新
2026年2月15日
1 条评价需要 WordPress 5.8+已测试到 6.9.12PHP 7.4+

贡献者

截图

WP Photos Gallery block in the editor with live preview and sidebar controls for username, photo count, columns, aspect ratio, size, random order, captions, and EXIF.
WP Photos Gallery block in the editor with live preview and sidebar controls for username, photo count, columns, aspect ratio, size, random order, captions, and EXIF.
Front-end gallery display with captions enabled, showing photo content under each image.
Front-end gallery display with captions enabled, showing photo content under each image.
Front-end gallery display with EXIF metadata enabled, showing camera settings for each photo.
Front-end gallery display with EXIF metadata enabled, showing camera settings for each photo.
Front-end gallery display with a 3-column layout and no captions/EXIF for a clean image grid.
Front-end gallery display with a 3-column layout and no captions/EXIF for a clean image grid.

My WP Photos lets you display WordPress Photo Directory images on your site using either:
– the [wp_photo_directory] shortcode, or
– the WP Photos Gallery block in the block editor.

Both the shortcode and block support the same settings:
– username: wordpress.org username (required unless set as plugin default)
– count: number of photos to display (any positive number)
– columns: number of columns (1-6)
– aspect: image aspect ratio. options: square, landscape, portrait
– size: photo size from the directory. options: medium, large, thumbnail, medium_large, 1536x1536, 2048x2048, full
– random: set to true to randomize photo selection (not only most recent photos)
– show_caption: set to true to show each image caption/content below the image
– show_exif: set to true to show camera EXIF metadata below each image

Example shortcode:
[wp_photo_directory username=”mdburnette” count=”24″ columns=”4″ aspect=”landscape” size=”large” random=”true” show_caption=”true” show_exif=”true”]

Default Settings

Admins can configure plugin defaults at Settings > My WP Photos. These defaults are used when shortcode/block attributes are not explicitly provided.

Editors can override any default at the shortcode or block level.

WordPress Photo Directory

This plugin uses the REST API provided by the WordPress Photo Directory to determine the author ID from the username and load the corresponding photo list. The directory can also be visited at https://wordpress.org/photos.

All photos are CC0 licensed. No rights are reserved, so you are free to use the photos anywhere, for any purpose, without the need for attribution.

Learn more at https://wordpress.org/photos/faq/

Accessibility and Performance

  • Uses semantic list markup for gallery items.
  • Includes alt text fallbacks, lazy loading, and async image decoding.
  • Caches author lookups and photo API responses with transients.
  • Supports paginated requests so larger count values can exceed 100 photos.
  • Includes responsive column scaling so configured columns reduce on smaller screens.

Internationalization

  • Includes Text Domain and Domain Path metadata.
  • Includes a translation template at languages/my-wp-photos.pot.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums