Choose Video Category for Sections – SKT TUBE theme

Home Forums All Other Themes Choose Video Category for Sections – SKT TUBE theme

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #69157
    MariaMaria
    Participant
    • Topics: 18
    • Replies: 16
    • Total: 34
    Member since: December 8, 2016

    Hi. This is the site I’m working on and the owner wants to assign DIFFERENT VIDEO CATEGORY for each section. He does not like to provide login info to anybody else, so if you can please send me the code or short code I will appreciate it.

    http://carolinabodybuilding.com/NCandSCBodybuildingVideos/

    I have to SKT Tube sliders in the frontpage, which work fine, BUT, I want to show 4 videos in each section and assign each section to a VIDEO CATEGORY. If that makes sense, PLEASE HELP.

    #69203
    Forum ModeratorForum Moderator
    Participant
    • Topics: 0
    • Replies: 27790
    • Total: 27790
    Member since: August 16, 2013

    Hi Maria,

    Your website is in under construction mode.

    Regards,
    Brad

    #69692
    MariaMaria
    Participant
    • Topics: 18
    • Replies: 16
    • Total: 34
    Member since: December 8, 2016

    Sorry…though I had taken it off maintenance.

    Please visit website now and let me know what I can do.

    #69701
    Forum ModeratorForum Moderator
    Participant
    • Topics: 0
    • Replies: 27790
    • Total: 27790
    Member since: August 16, 2013

    Hi Maria,

    Kindly use this shortcode: [newestvideos show="4" cat="1"]

    You have to add category id’s to show different category in the sections.

    Regards,
    Brad

    #69759
    MariaMaria
    Participant
    • Topics: 18
    • Replies: 16
    • Total: 34
    Member since: December 8, 2016

    Hi,

    What am I doing wrong? I have added this shortcode to the page attached to the different sections and it’s still not assigning the videos by categories. This is the code for one section “South Carolina Bodybuilding”:

    [centertitle text=”South Carolina Bodybuilding” textlast=”VIDEOS” titlecolor=”#393939″ lastwordcolor=”#e52d27″][columns size=”3″] [/columns][columns size=”3″][/columns][columns size=”3″][/columns][clear][newestvideos show=”4″ cat=”19″]
    [readmore align=”right” button=”VIEW ALL VIDEOS” links=”http://carolinabodybuilding.com/NCandSCBodybuildingVideos/index.php/south-carolina-bodybuilding-videos/sc-videos/”%5D

    #69809
    Forum ModeratorForum Moderator
    Participant
    • Topics: 0
    • Replies: 27790
    • Total: 27790
    Member since: August 16, 2013

    Hi Maria,

    Kindly go to skt-tube/sktframe/core-functions.php online number 2096

    Find
    $args = array( 'posts_per_page' => $show, 'post_type' => 'video', 'cat' => $cat, 'post__not_in' => get_option('sticky_posts'), 'orderby' => 'date', 'order' => 'desc' );

    Replace with this code
    $args = array( 'posts_per_page' => $show, 'post_type' => 'video', 'videocategory' => $cat, 'post__not_in' => get_option('sticky_posts'), 'orderby' => 'date', 'order' => 'desc' );

    Use this shortcode now: [newestvideos show="4" videocategory="19"]

    Regards,
    Brad

    #69820
    Forum ModeratorForum Moderator
    Participant
    • Topics: 0
    • Replies: 27790
    • Total: 27790
    Member since: August 16, 2013

    Hi,

    Apologize for the shortcode given in the previous post.

    Here is the correct shortcode: [newestvideos show="4" cat="Category Slug"]

    You need to add slug of the category in the cat=”” option.

    Regards,
    Brad

    #70081
    MariaMaria
    Participant
    • Topics: 18
    • Replies: 16
    • Total: 34
    Member since: December 8, 2016

    Thanks! That worked.

    #70105
    Forum ModeratorForum Moderator
    Participant
    • Topics: 0
    • Replies: 27790
    • Total: 27790
    Member since: August 16, 2013

    Okay great 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Choose Video Category for Sections – SKT TUBE theme’ is closed to new replies.