Title: Dynamic Video for Divi Posts
Author: Hyperspective
Published: <strong>2025 年 3 月 24 日</strong>
Last modified: 2025 年 3 月 26 日

---

搜索插件

![](https://ps.w.org/dynamic-video-for-divi-posts/assets/banner-772x250.png?rev=
3261070)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/dynamic-video-for-divi-posts/assets/icon-256x256.png?rev=3261070)

# Dynamic Video for Divi Posts

 作者：[Hyperspective](https://profiles.wordpress.org/hyperspective/)

[下载](https://downloads.wordpress.org/plugin/dynamic-video-for-divi-posts.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/dynamic-video-for-divi-posts/#description)
 * [评价](https://cn.wordpress.org/plugins/dynamic-video-for-divi-posts/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/dynamic-video-for-divi-posts/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/dynamic-video-for-divi-posts/#developers)

 [支持](https://wordpress.org/support/plugin/dynamic-video-for-divi-posts/)

## 描述

Dynamic Video for Divi Posts dynamically embeds a video into your blog posts by 
using a custom field. When editing a post, a new meta box labeled “Video URL” appears.
Enter a video URL (e.g., a YouTube link) into this box, and then use the [dynamic_video]
shortcode in your Divi Builder template. The video is automatically embedded using
WordPress’s oEmbed functionality. New in version 1.0.2: Optional setting to display
the post’s featured image when no video URL is provided.

## 屏幕截图

[⌊Settings, Instructions⌉⌊Settings, Instructions⌉[

Settings, Instructions

[⌊Snippet example for Divi Code Module⌉⌊Snippet example for Divi Code Module⌉[

Snippet example for Divi Code Module

[⌊Blog entry for video URL⌉⌊Blog entry for video URL⌉[

Blog entry for video URL

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/dynamic-video-for-divi-posts`
    directory, or install the plugin through the WordPress plugins screen by uploading
    the ZIP file.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Edit any post to see the “Video URL” meta box and enter your video URL.
 4. In your Divi Builder template, add a Code or Text module and insert the shortcode:`[
    dynamic_video]`.
 5. (Optional) Go to Settings > Dynamic Video for Divi Posts to enable the featured
    image fallback option.

## 常见问题

### How do I embed a video?

Enter a valid video URL (for example, a YouTube URL) in the “Video URL” meta box
when editing a post, and then use the `[dynamic_video]` shortcode in your template.
The video will be automatically embedded via WordPress’s oEmbed functionality.

### Why isn’t my video appearing?

Ensure that the video URL is correct and that your post type supports the shortcode.
Also, verify that your Divi Builder template includes the `[dynamic_video]` shortcode.
If no video appears and the featured image option is enabled, check if the post 
has a featured image set.

### How does the featured image fallback work?

When enabled in the plugin settings, if no video URL is provided for a post, the
plugin will display the post’s featured image instead of leaving the space blank.
You can turn this feature on or off in the plugin settings.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Dynamic Video for Divi Posts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Hyperspective ](https://profiles.wordpress.org/hyperspective/)

[帮助将「Dynamic Video for Divi Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/dynamic-video-for-divi-posts)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/dynamic-video-for-divi-posts/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/dynamic-video-for-divi-posts/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/dynamic-video-for-divi-posts/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/dynamic-video-for-divi-posts/)。

## 更新日志

#### 1.0.2

 * Added optional feature to display featured image when no video URL is provided
 * Added settings page checkbox to enable/disable featured image fallback
 * Updated documentation to include new feature instructions

#### 1.0.1

 * Renamed all functions, meta keys, nonce names, and admin slugs to use the unique
   prefix “dynvid_” to avoid naming conflicts.
 * Improved nonce verification by sanitizing input using both wp_unslash() and sanitize_text_field().
 * Enhanced data sanitization and output escaping for all user inputs and meta values.
 * Added an admin submenu page for plugin details.
 * Minor code and documentation updates for better security and compatibility.

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**1 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/dynamic-video-for-divi-posts/)
 * 标签
 * [divi](https://cn.wordpress.org/plugins/tags/divi/)[Dynamic](https://cn.wordpress.org/plugins/tags/dynamic/)
   [embed](https://cn.wordpress.org/plugins/tags/embed/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [video](https://cn.wordpress.org/plugins/tags/video/)
 *  [高级视图](https://cn.wordpress.org/plugins/dynamic-video-for-divi-posts/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/dynamic-video-for-divi-posts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/dynamic-video-for-divi-posts/reviews/)

## 贡献者

 *   [ Hyperspective ](https://profiles.wordpress.org/hyperspective/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/dynamic-video-for-divi-posts/)