Piotr Pieczykolan
Forum Replies Created
-
@pixelkicks – You wrote that you are using the latest version of WordPress and NextGen.
my test page (var_dump):
<!-- ======= object(stdClass)#2454 (10) { ["id"]=> int(1) ["name"]=> string(4) "alb1" ["slug"]=> string(4) "alb1" ["previewpic"]=> int(2) ["albumdesc"]=> string(22) "Opis albumu pierwszego" ["sortorder"]=> array(1) { [0]=> string(1) "2" } ["pageid"]=> int(0) ["extras_post_id"]=> int(73) ["id_field"]=> string(2) "id" ["exclude"]=> int(0) } -->
Is assigned the template to the gallery?
edit page / edit gallery:
Customize the display settings / Template / Parent Theme: album-compact.php\wp-content\themes\my_theme\nggallery\album-compact.php :
<?php echo $album->name; echo '<br />'; echo $album->albumdesc; echo '<br />'; ?>
WordPress: 3.8.1
NextGEN Gallery 2.0.58it is ok
Piotr
I applied solution: nextgen 1.9.2 ??
Piotr
https://wp.6scian.eu/wnetrza-prywatne/
1. I made a copy of the template:
wordpress/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/album-compact.php
wordpress\wp-content\themes\temat1\nggallery\album-compact-6scian.php2. I added to the template php code :
<?php echo '<!-- album '; var_dump($album); echo ' -->'; ?>
3. Page content:
[ngg_images album_ids=1 display_type=photocrati-nextgen_basic_compact_album]
[ngg_images album_ids=2 display_type=photocrati-nextgen_basic_compact_album]
[ngg_images album_ids=3 display_type=photocrati-nextgen_basic_compact_album]4. Effect
<!-- album NULL -->
I would like to display ‘Album name’ and ‘Album description’
WordPress: 3.7.1
NextGEN Gallery 2.0.33Piotr
I would like to display the title of the album.
Gallery titles display correctly.Piotr
gallery titles – yes
album title – noPiotr