How to get Gallery ID?
-
Hi,
Thanks for a great plugin.
I’ve edited the NextGen gallery template file so that the Public Uploader shortcode is inserted at the bottom of each Gallery page.
The gallery template I edited is:
“domain_name”/wp-content/plugins/nextgen-gallery-plus/modules/nextgen_pro_masonry/templates/index.phpAs a final step, I need to insert a variable into the shortcode. The variable I want to insert is the ID of the current gallery page being viewed INTO the public uploader shortcode where it asks for gallery ID.
Unfortunately I’ve never played with php before. So far I have this solution:
<?php echo do_shortcode(“[ngg_uploader id=<?php esc_attr_e($displayed_gallery_id); ?>]”); ?><?php $this->end_element(); ?>
It successfully displays the uploader form, but the images are not uploading to the correct gallery ID, so its not working properly.
Do you know how I can change this to make it work?
Your help would be much appreciated. Thank you
https://www.ads-software.com/plugins/nextgen-public-uploader/
- The topic ‘How to get Gallery ID?’ is closed to new replies.