內容簡介
安裝外掛後,您可以在要放置 Wistia 影片的頁面上,使用簡碼 [wistiavid id=xxxxx]。"xxxxx" 是 Wistia 影片的 ID,可在 Wistia 影片的 URL 中找到。
例如:http://smallbusinesswebsites.wistia.com/medias/q509p384zl
此影片的 ID 為 q509p384zl,因此影片的簡碼為 [wistiavid id=q509p384zl],如此頁面所示:
http://www.smallbusinesswebsites.org.au/about-us/
謝謝
Craig Lambie
開發人員
為什麼要這麼做?
Wistia 外掛讓我遇到了很大的困難。我試了幾個其他的程式碼片段外掛,但它們又會與“其他”外掛產生問題。
已知問題:
-“添加此”外掛可能會導致與 jQuery 或 Wistia JS 文件的衝突錯誤。
https://wordpress.org/extend/plugins/addthis/
未來發展:
-播放器自定義
-社交分享工具
-呼叫插件的操作
-更多對電子郵件捕獲插件的控制
僅用於高級用戶:
請隨意編輯代碼,以使其適用於您的需求。
只需轉到 Wistia 的“嵌入構建器”,設置您想要的視頻。
選擇嵌入類型:內聯
顯示高級選項
-選擇 API
您將看到這一部分:
“
<
script>
wistiaEmbed =“
將其在 wistiavid.php 文件的 PlaceWistiaVid 函数中重複 - 請務必注意逗號
任意部分 1
外掛標籤
開發者團隊
原文外掛簡介
To use Plugin install and then on page you wish to place the Wistia Vid put shortcode [wistiavid id=xxxxx] xxxxx being the Wistia Video ID, this can be found in the URL of the video on Wistia.
Eg. http://smallbusinesswebsites.wistia.com/medias/q509p384zl
The ID of this video is q509p384zl therefore the shortcode for the video is [wistiavid id=q509p384zl] as found on this page:
http://www.smallbusinesswebsites.org.au/about-us/
Thanks
Craig Lambie
Developer
Why I did this?
The Wistia Plugin caused me great pains. I tried a few other code snippet plugins, but they then caused issues with “other” plugins.
Known issues:
– “Add this” plugin can cause an error with conflicts in Jquery or Wistia JS files
https://wordpress.org/extend/plugins/addthis/
Future developments:
– Player customisation
– Social Sharing tools
– Call to action plugin
– More control over email capture plugin
Advanced Users Only:
Feel free to edit code to make this work for you.
Just go to “embed builder” in Wistia, set up video how you want it.
Select Embed Type: Inline
Show advanced options
– Select API
You will see the section:
“
<
script>
wistiaEmbed = “
Duplicate this in the wistiavid.php file function PlaceWistiaVid($args) – be sure to watch the commas
Arbitrary section 1
