
內容簡介
Snvk gallery Image Video metabox外掛允許使用者將多個圖像添加到特定文章、頁面或任何自訂文章類型中。
這個外掛提供以下選項:
1) 儀表板 > Snvk Media Gallery > 設置 > Setting gallery metabox 檢查文章或自訂文章類型以添加圖庫metabox。
網站
https://sushilsankwal.wordpress.com/
PHP程式碼
<?php
$snv_mediagallery = get_post_meta(get_the_ID(),'snv_mediagallery', TRUE);
$snv_mediatitle = get_post_meta(get_the_ID(),'snv_mediatitle', TRUE);
$snv_mediaurl = get_post_meta(get_the_ID(),'snv_mediaurl', TRUE);
$snv_arraycombine = array_map(null,$snv_mediagallery,$snv_mediatitle,$snv_mediaurl);
if(is_array($snv_arraycombine))
{
foreach($snv_arraycombine as $snv_content)
{
//文件網址
echo esc_html($snv_content[0]);
//文件標題
echo esc_html($snv_content[1]);
//視頻的媒體網址
echo esc_html($snv_content[2]);
}
}
?>
外掛標籤
開發者團隊
原文外掛簡介
Snvk gallery Image Video metabox plugin allows user to add multiple images to particular post, page or any custom post type.
There the options provided with this plugin i.e.
1) Dashboard > Snvk Media Gallery > Setting > Setting gallery metabox check post or custom post type for add gallary metabox.
Website
https://sushilsankwal.wordpress.com/
PHP CODE
