外掛說明
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
<?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)
{
//file url
echo esc_html($snv_content[0]);
//file title
echo esc_html($snv_content[1]);
//media url for video
echo esc_html($snv_content[2]);
}
}
?>
螢幕擷圖
安裝方式
- Upload
snvk-media-gallery
to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
OR
- Goto dashboard > plugin > Add New > select
snvk-media-gallery.zip
file. - Activate the plugin through the ‘Plugins’ menu in WordPress.
常見問題集
-
How to installation Snvk Media Gallery plugin
-
- Upload
snvk-media-gallery
to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Upload
使用者評論
這個外掛目前沒有任何使用者評論。