开发者 | blogvii |
---|---|
更新时间 | 2024年11月17日 21:12 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.6.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
"1,2,3,4,5"
with the actual IDs of the images you want to display, separated by commas.
total="3"
will display 3 random images.thumbnail
, medium
, large
, or full
. The default is full
.
[blogvii_random_images media_ids="10,20,30" total="2" size="full"]
[blogvii_random_images media_ids="5,15,25,35,45" total="5" size="medium"]
[blogvii_random_images media_ids="your_ids" total="number" size="image_size"]
in your posts or pages.You can find the media IDs by going to the Media Library, clicking on an image, and checking the URL in the address bar. The ID will be at the end of the URL (e.g., post=123
means the ID is 123).
Yes, you can specify the total
parameter to display up to 5 random images.
Yes, the layout is built with Flexbox CSS, ensuring that images adapt to different screen sizes.