內容簡介
總結:Post Media Manager 是一個輕量的 WordPress 外掛,讓您可以為部落格文章設置精選影片,就像精選圖片一樣!附帶內建的版面設計師,讓您可以建立並預覽文章(含影片)在前端的外觀。對於希望透過引人入勝的影片內容來增強文章的部落客或出版商而言,這是完美的選擇。
問題與答案:
問題:Post Media Manager 可以為 WordPress 的哪些部分提供功能支援?
答案:Post Media Manager 可以提供設定精選影片功能、版面設計、自動顯示影片、短代碼支援、替換精選圖片等功能支援。
問題:如何啟用 Post Media Manager 外掛?
答案:您可以透過管理員搜尋並下載插件,或者透過 ZIP 檔案安裝外掛,然後在 WordPress 的「外掛」選單中啟用它。
問題:可以如何設置精選影片?
答案:進入任何文章(新增或編輯),您可以在右側側邊欄(或編輯器下方)看到「精選影片」的元資訊框。點擊「上傳影片」從媒體庫中添加影片或上傳新的一個,然後保存或更新文章即可。
問題:如何設計自訂版面?
答案:您可以前往 WordPress 管理員選單中的版面設計師,查看全部文章及其精選影片的即時預覽。使用提供的短代碼在任何頁面或文章中顯示此佈局。
外掛標籤
開發者團隊
② 後台搜尋「Post Media Manager: Image & Video」→ 直接安裝(推薦)
原文外掛簡介
Post Media Manager is a lightweight WordPress plugin that allows you to set a featured video for your blog posts — just like a featured image!
It includes a built-in Layout Designer so you can create and preview how your posts (with videos) will appear on the frontend. This is perfect for bloggers or publishers who want to enhance their posts with engaging video content.
You can display the video automatically after the post content or insert it manually using a shortcode.
Features
Set Featured Videos on Posts- Upload or select a video for any WordPress blog post.
Layout Designer- Create and preview custom layouts for displaying post content along with featured videos.
Automatic Video Display- Optionally display videos after the post content or excerpt automatically.
Shortcode Support- Use [sfv_layout_display] to insert post manually.
Replace Featured Image- Optionally replace the post thumbnail with the featured video on the frontend.
Stored as Post Meta- Videos are stored as post meta, using the WordPress media library.
Admin Installer via search:
Visit the Add New plugin screen and search for “Post Featured Video and Layout Designer”.
Click the “Install Now” button.
Activate the plugin.
Admin Installer via zip:
Download the Plugin.
Extract the ZIP file and upload.
Activate the plugin through the “Plugins” menu in WordPress.
Usage
Set a Featured Video:
Go to any Post (Add New or Edit).
On the right sidebar (or below the editor), you’ll see a Featured Video meta box.
Click Upload Video to add a video from the media library or upload a new one.
Save or update the post.
Design Your Layout (Optional)
Go to Layout Designer from the WordPress admin menu.
This page displays a live preview of all your posts with their featured videos.
Use the provided shortcode to display this layout on any page or post.
Use Shortcodes
Manually display the featured video using: [sfv_layout_display]
This will show the featured video for the current post.
Design Custom Layouts (Optional)
Go to Layout Designer from the admin menu.
View how your posts will appear with their featured videos.
Copy and paste the shortcode [sfv_layout_display] into any post or page to show the layout.
Replace Featured Image with Video (Optional)
Enable this option from your plugin settings.
If a video is set, it will be displayed in place of the featured image on the frontend.
Code Example
Registering Admin Menu:
add_action(‘admin_menu’, ‘sfv_add_admin_menus’);
function sfv_add_admin_menus() {
add_menu_page(
‘Post Layout ‘,
‘Post Layout’,
‘manage_options’,
‘sfv-layout-designer’,
‘sfv_render_layout_designer_page’,
‘dashicons-video-alt3’,
25
);
}
