Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Open \wp-content\plugins\contus-video-gallery\hdflvvideoshare.php and find function video_recent_video_shortcode($attr=array()). Inside the function you can find $contentvideoPlayer = $videoOBJ->video_more_pages($more); Now replace with the following code.

    if ($attr ['rows'] && $attr ['cols']) {
    		$contentvideoPlayer = $videoOBJ->video_more_pages ( $more, $attr );
    	} else {
    		$contentvideoPlayer = $videoOBJ->video_more_pages ( $more, $attr = array () );
    	}

    Finally open \wp-content\plugins\contus-video-gallery\front\views\videomore.php and find function video_more_pages($type) and replace with function video_more_pages($type, $arguments).

    Now find case 'recent' :. Inside the case you can find the following code

    $rowF = $this->_settingsData->rowMore;
    						$where = '';
    						$colF = $this->_settingsData->colMore;

    replace with

    if ($arguments ['rows'] && $arguments ['cols']) {
    							$rowF = $arguments ['rows'];
    							$colF = $arguments ['cols'];
    						} else {
    							$rowF = $this->_settingsData->rowCat;
    							$colF = $this->_settingsData->colCat;
    						}
    						$where = '';

    Now you need to use shortcode like the following one.

    [recentvideo rows=”1″ cols=”3″]

    If you have any other queries on this, feel free to contact the support team at [email protected]

    Thread Starter JordanC26

    (@jordanc26)

    Fantastic, works great!

    Quite happy to say I’d go for the PRO version soon if this is the level of support already. ??

    Glad to hear that the solution works well. If you have any other queries feel free to contact us.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show X number of videos – shortcode edit’ is closed to new replies.