karen11
Forum Replies Created
-
Thanks Cais for the reply!
Apologies if I’m not being clear. In each post, I’ll create a gallery and set Basic Thumbnail as the display type. I would love to be able to have a line of text just above the gallery to show the total number of images (example: 4 images).
I’ve added the code:
<?php global $wpdb; $images = intval( $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = {$gallery->ID}") ); ?> <?php echo $images; ?>
just below
<!-- Thumbnails --> <?php $i = 0; ?> <?php foreach ( $images as $image ) : ?>
in
../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/gallery.php
but I think I’m not doing it right.
The closest I’ve found is someone trying to display the image count in the loop. But I’m hoping to display the image count within per gallery itself, on a post instead of within the loop. Any advice?
I’ve checked out the custom template (hopefully I got it right) you’ve mentioned, but what I would really love is to display the gallery in Basic Thumbnail style and having the image count where the text “view slideshow” is.
Thanks again! Any help will be greatly appreciated!
Hi photocrati,
I’ve just installed your plugin and I’m having the same issue as kapara.
My gallery has 5 images, using the shortcode you’ve provided, I’ve managed to display just 1 thumbnail. But when I click on the thumbnail, I’m brought to (I assume) the image attachment page instead of a lightbox view with next and previous arrows. I have this line of code
<?php wp_redirect(get_permalink($post->post_parent)); ?>
at the start of my Image Attachment Page (image.php) to prevent redirecting to image attachment page though (not sure if it’s relevant).Also, I’m unable to change to any Lightbox Effects. I’ve deactivated all plugins too.
I’m using Twenty Eleven and below is the link to my site with the gallery I’ve created using NextGEN Gallery:
https://forelderly.sg/sample-page/All help is greatly appreciated. Thanks!
Forum: Plugins
In reply to: [nrelate Related Content] nRelate Suddenly Not Working!here’s a link to my site.
Forum: Plugins
In reply to: [nrelate Related Content] nRelate Suddenly Not Working!hi
my nrelate plugin suddenly stop working too. no error on nrelate setting page, i did not stall new plugin, it just suddenly stop working. can anyone help?
Forum: Themes and Templates
In reply to: Twenty Eleven footer alterations: functions or footer css?Alright .. Sorry..
Forum: Themes and Templates
In reply to: Twenty Eleven footer alterations: functions or footer css?Hi
Is it possible to add the fourth widget area that is full width? Meaning it’s sitting just above the existing 3 column widget at footer? Thanks.
Forum: Themes and Templates
In reply to: How to add a fourth footer widget area to twenty elevenHi
Is it possible to add the fourth widget area that is full width? Meaning it’s sitting just above the existing 3 column widget at footer? Thanks.