![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Couldn't find this elsewhere, but hopefully I am not created a repeat thread.
A suggestion for the Video Page. When you go to the page and click Next Video it takes you to page 2 and the index on the right shows the second page of videos even though the video you are viewing is on the second page. Would it be possible to keep the index aligned with the current video. Using the Streamline demo as an example, you wouldn't see the 2nd page of videos on the right until you are on video #6. Original code: Code:
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=".get_theme_mod('vid_cat')."&showposts=".get_theme_mod('vid_cat_num')."&paged=$page"); while ( have_posts() ) : the_post() ?>
indexpage = Int(paged/get_theme_mod('vid_cat_num') + 1 Code:
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=".get_theme_mod('vid_cat')."&showposts=".get_theme_mod('vid_cat_num')."&paged=$indexpage"); while ( have_posts() ) : the_post() ?>
|
|
#2
|
|||
|
|||
|
I think I've got it working on my site. Here's the code:
Code:
<?php $tpage = (get_query_var('paged')) ? get_query_var('paged') : 1;
$page = floor(($tpage-1)/get_theme_mod('vid_cat_num')) + 1;
query_posts("cat=".get_theme_mod('vid_cat')."&showposts=".get_theme_mod('vid_cat_num')."&paged=$page");
while ( have_posts() ) : the_post() ?>
http://www.myfamilylovesit.com/blog/index.php/movies/ Only 5 movies posted so I set the right nav to show 2 at a time. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need suggestion for video in WP | ghettohacker | General Discussion | 4 | 01-11-2011 08:17 AM |
| Featured Video Suggestion | gordonmartin | General Discussion | 4 | 09-07-2010 02:07 PM |
| gallery and video plugin suggestion help | harris414 | General Discussion | 3 | 12-03-2009 09:22 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us