Support » Plugin: WORDPRESS VIDEO GALLERY » "More Videos" link

Viewing 3 replies - 1 through 3 (of 3 total)
  • karthikeyani

    (@karthikeyani)

    Hi,

    Please go to WP admin -> Video Gallery -> Categories. Here edit your all categories and save it. Now go to WP admin -> Settings -> Permalinks and set the permalink type to “Default” and save. Now check the home page. If it is working fine, now you can change the permalink type to your old one. If you are still facing the same issue, feel free to post here.

    Thread Starter jockoe

    (@jockoe)

    I re-saved/updated all categories. I changed my permalink structure to “Default”. Now when I click it I am taken to a page with all of the videos for that particular category, which is the same 10 videos. My questions are…

    Why is that link even there if there aren’t “More Videos” to show? (It’s the same 10)

    My settings are for 5 rows, 4 videos per row. (20 videos) Why is that link showing after only 10 videos?

    karthikeyani

    (@karthikeyani)

    Hi,

    Please open

    /wp-content/plugins/contus-video-gallery-master/front/views/videohome.php

    and find

    function categorylist

    . Inside the function you can find the below code.

    ## Fetch videos for every category

    Now place the following code after the above mentioned comment line.

    $sql = 'SELECT s.guid FROM ' . $wpdb->prefix . 'hdflvvideoshare as w
    					INNER JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play as m ON m.media_id = w.vid
    					INNER JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist as p on m.playlist_id = p.pid
    					INNER JOIN ' . $this->_wpdb->prefix . 'posts s ON s.ID=w.slug
    					WHERE w.publish=1 and p.is_publish=1 and m.playlist_id=' . intval( $catList->pid ) . ' GROUP BY w.vid';
    				$totalvideos     = $wpdb->get_results( $sql );

    Finally find

    if ( ( $playlistCount > 8 ) )

    and replace with

    if ( ( count($totalvideos) > $dataLimit ) )

    If you have any other queries feel free to contact us.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"More Videos" link’ is closed to new replies.