Home › Forums › All Other Themes › Choose Video Category for Sections – SKT TUBE theme
- This topic has 8 replies, 2 voices, and was last updated 7 years, 6 months ago by Sonl Sinha.
-
AuthorPosts
-
April 16, 2017 at 8:15 am #69157
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.
April 17, 2017 at 6:25 am #69203Hi Maria,
Your website is in under construction mode.
Regards,
BradApril 20, 2017 at 12:11 pm #69692Sorry…though I had taken it off maintenance.
Please visit website now and let me know what I can do.
April 20, 2017 at 12:53 pm #69701Hi 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,
BradApril 21, 2017 at 5:54 am #69759Hi,
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/”]April 21, 2017 at 7:45 am #69809Hi 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,
BradApril 21, 2017 at 9:19 am #69820Hi,
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,
BradApril 24, 2017 at 5:16 pm #70081Thanks! That worked.
April 25, 2017 at 5:05 am #70105Okay great 🙂
-
AuthorPosts
- The topic ‘Choose Video Category for Sections – SKT TUBE theme’ is closed to new replies.