I figured it out!!
My final code looks like:
<?php
$images = intval($wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures"));
$ngg_options = nggGallery::get_option("ngg_options");
$maxElement = $ngg_options["galImages"];
if ($images > $maxElement) {
echo "duck";
}
?>
Basically the code checks see if the number of images IS larger than the number of images displayed per page…if it is larger I echo
what I want it to do…if not, it does nothing.
Related Posts:
- How can I determine if a post has an image attachment?
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- Retrieving images from a NextGEN gallery
- SEO images in Nextgen Galleries
- One picture belonging different galleries?
- Apply nextgen-gallery lightbox effect [closed]
- How to enlarge thumbnail on mouseover?
- How do I add a nested conditional within an echo – to use a default image if there isn’t one in the post?
- get the attachement url for the medium sized image
- Each custom image size in custom upload directory?
- How to automatically add rounded corners to thumbnails?
- Is there a simple way to just insert a link to an image (without inserting an image)?
- Watermarking Images with WordPress with WP_Image_Editor
- Get attachment/image info in JS
- Auto-modifying original [full size] images
- How to limit number of images being printer out in “Set Featured Image” pop up?
- Crop image to horizontal or vertical by code based on image size
- Pasting images removes class attribute
- How can I make all gallery images to open in a new window?
- Open the attachment details modal
- Crop image without scaling or resizing with add_image_size()
- Can’t access ‘Store uploads in this folder’
- Is there a way to pull the first featured image in a loop and not all other featured images?
- How to Display Featured Image Title and ALT Attribute
- Is it possible to recover featured images after WordPress export/import
- how to stop generating different image sizes from parser
- Add attribute to caption shortcode from custom attachment field
- Get an image’s alt text in a shortcode using the image URL
- Add Small Image Size to Media Settings
- Character Limit w/ Excerpt removes Images Why?
- Link to large image version instead of original?
- Adding new size for Media screen in functions.php not working
- After installing ssl certificate images won’t show
- Random Size on Featured Image
- Some images not found 404 in localhost
- WordPress adds extra width to post images container boxes
- Handling image uploads without thickbox
- Loose images in uploads folder
- Help With Custom Image and Text Widget
- Convert uploaded GIF to non animated image automatically
- Using SRCSET with Images and Featured Images
- How to make a gallery with dynamic images from URLs?
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor
- Find and Use an image’s caption
- wordpress post pagination with image buttons?
- Is it possible to change image size used for preview thumnail in Add Media popup
- Disable lazy loading on specific images
- Bulk Upload Image Alt Text
- Call to undefined function wp_generate_attachment_metadata()
- the_post_thumbnail(‘medium’) setting some images width=1 height=1
- Help with resizing of featured images on WooCommerce homepage
- Height and width attribute not setting by the_post_thumbnail
- Featured Image Cetegory Not Shown In WordPress
- How do I get a smaller size of an avatar image
- When the new post which has no image published, save the specific image as the featured image ( by category )
- download link for uploaded images for wordpress
- How do I link a featured photo to it’s post?
- Force default OG:Image – Yoast SEO [closed]
- Why do I have blury images in WordPress
- Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )
- How to get the title of the random images from media library?
- How to indent pictures on WordPress blog? [closed]
- How To Display Author Photo In WordPress without any plugin?
- What is the plugin to import image from URL?
- Allow users to upload multiple images to their profile
- how to change format jpg to webp?
- User uploads image as “Featured Image” but WordPress resizes it?
- Hide Title tag on image Hover
- How to increase media image scale limit?
- Force WordPress to always generate a thumbnail for original image
- How to get the best resolution of image from srcset
- File upload size limit in wordpress and php.ini limit
- How to add php to theme to show alt attributes
- Display Title/Description/Caption of custom images on homepage
- Blank image thumbnails in media library
- Getting extra image links in code with wp_get_attachment_image
- featured image in custom poste type (backend)
- Image Uploader Doesn’t Open Modal in Widget
- Dinamically modifying attributes of images on posts
- Run command to optimize images after they get uploaded to WordPress
- How decrease the size of images which are present in uploads folder?
- Large size is not honoured when inserting image
- Issue uploading images
- Get attachment images does not return any attached images
- The most of the images don’t appear, although URLs are correct
- Add two images with Sweet Testimonials
- Breadcrumbs for Single Image page
- Get images uploaded to this post in popup on editor screen
- Remove “align” attribute on images
- WordPress Images | How to get the cropped image?
- Import existing image as a single post
- How do I change a Themes Header Image?
- Some images 404
- Media Library is not loading on grid view in admin panel
- Blurry Images WordPress 5.8.1
- How can I put pictures next to each other and how can I add a location? [closed]
- How to show file size of featured image? [duplicate]
- Images uploaded in customized gallery do not link to media
- WordPress Site Broken and it gives Headers Already sent error