= Is it possible to show the images at any position in the theme (not only as widget)? =
Yes, you can use the following code to include the images:
PHP-Code:
<?php if ( is_object($galleryWidget) ) : ?>
<?php echo $galleryWidget->getAttachedImages(maximages, [latest|random], [old|direct], css-class, link-relation); ?>
<?php endif; ?>
for instance, 5 random images:
PHP-Code:
<?php if ( is_object($galleryWidget) ) : ?>
<?php echo $galleryWidget->getAttachedImages(5, 'random'); ?>
<?php endif; ?>
latest 7 images of the categories 1, 2 and 5, only 1 image per post/link to article (css: wGallery, relation: lightbox):
PHP-Code:
<?php if ( is_object($galleryWidget) ) : ?>
<?php echo $galleryWidget->getAttachedImagesByCategories(7, 'latest', '1,2,5', 'include', 'article', 'wGallery', 'lightbox', 'yes'); ?>
<?php endif; ?>
Attention: If you wan't to use the galleryWidget-object in a function (like the sidebar), you have to include the global variable $galleryWidget (add
PHP-Code:
global $galleryWidget;
before if())