Hi guys, here is a small function wich may help some of you. It allows to navigate trough single item without the lightbox activated. You know can navigate trough the gallery with simple links (previous/next media).
Simply past this function in your functions.php :
function rtmedia_navigate() {
global $wpdb, $rtmedia_media;
$current_media = rtmedia_id();
$current_album = $rtmedia_media->album_id;
$media_ID = array();
$content = "";
$medias = $wpdb->get_results ( "SELECT ID FROM ".$wpdb->prefix."rt_rtm_media WHERE album_id = $current_album ORDER BY ID" );
foreach( $medias as $media_id ) {
$media_ID[]= $media_id->ID;
}
$current_key = array_search($current_media,$media_ID);
$prev_id = $media_ID[$current_key-1];
$next_id = $media_ID[$current_key+1];
if($prev_id != '' || $next_id != '') {
$content .= '';
}
print $content;
}
Then past this in the loop of your custom media-single.php file :
<?php rtmedia_navigate(); ?>
Hope this help !