I did a new album template album-list.php and it was like this:
<?php
/**
Template Page for the list of albums
Follow variables are useable :
$album : Contain information about the album
$galleries : Contain all galleries inside this album
$pagination : Contain the pagination content
You can check the content when you insert the tag <?php var_dump($variable) ?>
If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
**/
?>
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($galleries)) : ?>
<h4><?php echo $album->name ?></h2>
<ul class="albumit">
<!-- List of galleries -->
<?php foreach ($galleries as $gallery) : ?>
<li><a class="Link" href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
Then I put do_shortcode-function to my sidebar. Like this:
echo do_shortcode('[album id=5 template=list]');
Thats working, but in gallery-page it returns nothing. And just on gallery-page I need the hierarchical menu list of albums/galleries ??
Can anyone help?