Docker series builds a simple video gallery based on wordpress+minio
This article was last updated 229 days ago. The information in it may have developed or changed. If it is invalid, please leave a message in the comment section.

Preface

In the previous article, I used minio in docker to build my own simple COS platform (see:Docker series builds a private COS platform based on minio), which I used to share some large files with friends occasionally. However, it felt a bit wasteful to set up minio "occasionally". In order not to waste this simple COS platform, I simply opened an mv channel on my blog and put some classic mvs from my collection on it, so that it is convenient to share with friends when I need it.

To achieve this effect, you need to install a video plugin that supports the "gallery" function on WordPress (I am not a programmer and don't understand code, so I can only use plugins to solve the problem as much as possible). Of course, the basic principles cannot be lost, and free is still a must~. After some attempts, I found a plugin that barely meets the requirements: All-in-One Video Gallery.

This plugin essentially generates a post directly from each video, as follows:

image.png

And you can generate different pages according to different dimensions (video categories, video tags, user videos, etc.) (essentially generating short codes pointing to different dimensions). For example, generate a page according to mv classification:
image.png

Build steps

1. Create a new video category (optional step)

image.png

This step is not necessary. It depends on your needs. If there is only one category, you don’t need to bother with it. I consider that there will be other categories in the future, such as classic movie clips, so I have currently established two categories: film and mv:
image.png

2. Upload Video

To use this plugin to present a video gallery, you must upload the video in this plugin:

image.png

Click Add New in the upper right corner:
image.png

The red-boxed parts shown in the above picture are some key items (the annotations above are a bit unclear due to resolution issues, but you can barely see them if you get closer, so I won’t write about them separately). The key is the way to upload the video. The method of directly uploading the video has too many limitations and affects the performance of WordPress too much, so the URL method is recommended. This article uses the link generated by minio COS, and other methods are also acceptable. Just choose according to your actual situation. After filling in the options, click Publish in the upper right corner.

At this point, it is basically done, and the only thing left is how to present it. In fact, after installing this plugin, you can see that there are already some more pages in the page section of WordPress, as follows:

image.png

These are the pages generated by the plugin in advance. In fact, you only need to add this page to WordPress to see it directly, but this may not meet our requirements. For example, I want a page to present all the contents in the mv category. I just need to get a short code first:

image.png

Follow the red box and click Generate Shortcode below to generate the shortcode:
image.png

Then just paste the short code in the red box to the desired location on any page (remember to put it in a separate line), and the final effect will be the effect of the mv page above:

image.png

In addition, there are many options in the specific settings of the plug-in. You can slowly find the one that suits you:
image.png

However, this deployment method is not perfect. For example, you cannot play the video directly by clicking on the thumbnail. I guess it is because of the COS method. There should be no such problem if you upload the video directly (you can see the play mark on the video thumbnail). For another example, this presentation method is a bit low. The paid version is very powerful, with several methods to choose from, but the free one is probably just like this, so my title is "Simple" Video Gallery.

The content of the blog is original. Please indicate the source when reprinting! For more blog articles, you can go toSitemapUnderstand. The RSS address of the blog is:https://blog.tangwudi.com/feed, welcome to subscribe; if necessary, you can joinTelegram GroupDiscuss the problem together.
No Comments

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠(ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ°Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
Emoticons
Emoji
Little Dinosaur
flower!
Previous
Next
       
error:
en_US
Spring Festival
hapiness