Hi Chamralima,
Here is the steps for shortcode to display particular category videos in your page.
1) Please open \wp-content\plugins\contus-video-gallery\hdflvvideoshare.php and find function videogallery_pagereplace($pageContent)
and add the below code before return $pageContent;
.
$pageContent = preg_replace_callback('/\[videosec ([^]]*)\o]/i', 'video_moreidreplace', $pageContent);
2) Now add the following code after add_shortcode('hdvideo', 'video_shortcodeplace');
function video_moreidreplace($arguments = array()) {
global $frontControllerPath, $frontModelPath, $frontViewPath, $wp_query;
$playid = $arguments['id'];
$wp_query->query_vars["playid"] = $playid;
include_once ($frontControllerPath . 'videomoreController.php');
$videoOBJ = new ContusMoreView();
if (!empty($playid)){
$more = 'cat';
}
$contentvideoPlayer = $videoOBJ->video_more_pages($more);
return $contentvideoPlayer;
}
add_shortcode('videosec', 'video_moreidreplace');
3) Finally, insert the below mentioned shortcode to display the particular category videos in your page.
[videosec type=category id=27]
27 – is the Category ID.