My WP Photos

설명

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.

스크린샷

설치

  1. Upload the my-wp-photos plugin to your site and activate it.
  2. Optional: Configure plugin-wide defaults in Settings > My WP Photos.
  3. Add the WP Photos Gallery block to a post/page and configure settings in the sidebar, or add the [wp_photo_directory] shortcode.
  4. Set a username in the block/shortcode, unless you configured a default username in plugin settings.

후기

2026년 2월 15일
Given that this is pulling data from an enormous pool, it’s surprisingly fast. I really like that you can choose things like columns, count, size, etc. Also really happy that it has both a block and a shortcode. Well done!
모든 1 평가 읽기

기여자 & 개발자

“My WP Photos”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“My WP Photos”(이)가 2 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “My WP Photos”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0 (February 14, 2026)

  • Added WP Photos Gallery block for the block editor with live dynamic preview.
  • Added plugin admin settings page for default gallery values.
  • Added shortcode/block-level overrides for plugin defaults.
  • Added columns setting (max 6) with responsive column scaling.
  • Added random setting for shortcode and block.
  • Added show_caption setting to display image captions/content below images (default off).
  • Added show_exif setting to display camera metadata below images (default off).
  • Added support for any positive count value via paginated API requests.
  • Added languages/my-wp-photos.pot for translation readiness.
  • Improved accessibility with semantic markup and image loading attributes.
  • Added transient caching and API response validation.
  • Improved shortcode/block attribute validation and sanitization.

0.0.1 (November 8, 2023)

  • Initial plugin release.