Output Custom Field value to shortcode

I am trying to automate a whole bulk of my pages and one of the shortcodes I have created is to output the NextGen Gallery Tags by using the page custom fields that each page has a unique id. This id is actually tagged into certain galleries which I want to output on the page. For those unfamiliar with NextGen Gallery tags shortcode. Please visit this link. Each page has a custom field "gallery_id" which I input a unique tagged …
Category: Web

How can I remove the navigation menu from a Page that is not on the menu?

I have an astra template site that I setup on Wordpress and edit with elementor. One of the new pages I added from NextGen Gallery is not being edited with elementor. It is the only page I don't use elementor with. Also, this page is not on my menu. I only show this page from a link on another page. However when this page shows, it has the navigation menu across the top. I don't mind it being there or …
Category: Web

Customizing NEXTGEN Gallery To link images to pages

Instead of linking to lightbox I'm trying to link my thumbnail images to a page or 3rd party website. I found http://astronautweb.co/nextgen-gallery-custom-thumbnail-link/ but was from 2011. I'm not able to follow it because I think the file structures are different now that we're all the way in 2018. I'm not seeing where I need to make an edit to the nggallery.php file in the plugin editor. From my manage gallery page I want to add a url input field to …
Category: Web

How to increase the thumnail size of nggallery carousel template

I want to increase the thumbnail image size of nggallery carousel template. Check this link http://arkamediaworks.com/rel_test/uncatagorize/hello-2/?pid=6 is there any better code to do it. Here, is the code: <!-- Thumbnail list --> <?php foreach ( $images as $image ) : ?> <?php if ( $image->hidden ) continue; ?> <?php $subnavi[] = $image->pidlink ;?> <li id="ngg-image-<?php echo $image->pid ?>" class="ngg-thumbnail-list <?php if ($image->pid == $current->pid) echo 'selected' ?>" > <a href="<?php echo $image->pidlink ?>"> <img src="<?php echo $image->thumbnailURL ?>" alt="<?php echo …
Category: Web

NextGen Gallery different thumbnail size per gallery

How can I instruct NextGen Gallery to use different thumbnail sizes for different galleries. I have different gallery templates for use in different parts of the site, and the sizes of the thumbnails are not the same. At the moment I have to stay generating the thumbnails through the gallery management page, it would be much better if I could set the thumbnail size for each gallery once and for all. Thanks.
Category: Web

How do I get the attributes of a short code from a post?

I am trying to preview a NextGen gallery on my main page (and category pages) to show a single image from the gallery on the main page next to the text from the post that normally shows up. I have found examples of PHP that get the images from a gallery given a gallery ID. In my loop I have a current post. What I cannot figure out is how to, given a post, get the attributes of the [nggallery] …
Category: Web

NextGEN Gallery Lightbox - Social Share URL Redirect

I am using NextGEN Gallery Pro - Lightbox's Social Share feature on my WordPress site which actually create and share a temporarily created url (first-url) on social media. Somehow the redirect doesn't work and generates a blank page when I visit the first-url. I am thinking to add a manual htaccess rewrite rule or preferably WordPress function to make this redirect possible. How can I add such rewrite rule in .htaccess or a WordPress hook to redirect first-url to second-url? …
Category: Web

Load entire NextGEN gallery from single thumbnail?

I'm using Alex Rabe's NextGEN Gallery in a lot of client sites as a centralized image repository, and am finding I often need to load an entire gallery into a lightbox (invoked via a single thumbnail), without displaying more than a single thumbnail on page. Thus, I could have a series of four thumbnails on a page, each thumbnail opening a different set of pictures in a lightbox when clicked. Any idea how I could do this? Thanks.
Category: Web

Can I have the same image in multiple NextGen galleries?

Is it possible to have the same image in multiple NextGEN galleries without duplicating the image? For example, let's say I have a gallery called "dogs" and a gallery called "cats". If I have a picture of a dog and a cat, I'd like to have this in both my "dogs" gallery and my "cat" gallery. By default, NextGEN creates a new folder for each gallery (e.g. /wp-content/gallery/dogs), and either adds uploaded media to the folder, or moves media from …
Category: Web

Plugins not showing on dashboard?

I've seen other people post the same question but I think my scenario is a bit different. My plugins WERE working fine UNTIL I created 2 additional sites and added an extension plugin. So basically my website structure looked like this: /public_html/ <-- main site /public_html/test/ <-- second site /public_html/test2/ <-- third site I forgot exactly when the problem started occurring, but there was a moment when I was installing a new plugin (it was NextGen gallery extension) on my …
Category: Web

multisite not displaying thumbnail image after upload in nextgen gallery

Namaste, https://www.gitamritam.com/2017y/inaug/ In the above link, its a multisite in wordpress, where thumbnails and gallery images are not showing up. We have done it using nextgen plugin which is really awesome in wordpress. But here its showing broken images in gallery. We checked the same thing in a free hosting server and it works fine. Not sure why its not showing up in this multisite. This is current url of image in multisite: https://www.gitamritam.com/2017y/images/sites/18/gallery/17y-inaug/17gita-inaug-16.jpg The subsite name ‘2017y’ is inserting …
Category: Web

NextGen Gallery not allowing me to display the_excerpt();?

I have a site hosted locally that has a plugin called NextGen Gallery, I have over 4,000 images within galleries in this plugin, so I definitely need it. When the plugin is active, it will not let me use the_except(); in my index.php file. I know its the plugin because I went through each plugin manually and made sure it was that plugin that was affecting it. I really need to get this sorted ASAP, so if anyone has a …
Category: Web

Present NextGen Gallery album through link

I'm using the NextGen Gallery and would simply like to present one of my albums in a popover gallery through an anchor link. Currently I'm only aware of being able to use the ngg short code to insert an album into my page. This is not what I want. I don't want the images to show on the page. I would like to have a link and upon clicking the link, my NextGen album is presented in a popover gallery. …
Category: Web

nextgen gallery: how to get picture url by gallery id

All posts in my site have custom field with nextgen gallery ID. To display gallery I use this code: $gallery_id = get_post_meta( $post->ID, 'galerijos_id', true); // Get gallery id from custom field data if( $gallery_id ){ echo '<div class="post-gallery">'; echo nggShowGallery( $gallery_id ); // Display the gallery echo '</div>'; How do I get pictures urls by gallery ID? I need url to pass to xml file. Thanks in advance.
Category: Web

Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms...)

I'd wish to use WP 3.x standard Media Librery rather than relying on 3rd party plugins like NextGen no matter how well they're written. I just don't like duplicating functionalities. Media Librery actually can handle well images, provides thumbnails, captions... But I think lacks of organizing images in collections, folders, categories, terms. Is there a way to tweak/extend wordpress to add certain images in the media gallery to collections, categorize them and assign custom terms to each image? In this …
Category: Web

Infinite scroll / lazy loading with NextGen Gallery

I'm working on a project for a friend that involves a massive page with 3,000+ photos. See: http://www.thepurplepixie.com/projects/purple-pixies-people-project/ Currently, I have pagination set to 50 thumbnails per page in order to try and get the Infinite Scroll (Wordpress Plugin) (Infinite Scroll Homepage) to work, and to illustrate how I have the galleries set up in NextGen. Before, I had pagination off so it was one massive wall of photos, which, while accomplishing more or less what I was wanting, ultimately …
Category: Web

How to Organize and Sort Gallery of Images

I'm working on a website for an artist. He has many images that he would like a user to be able to sort and filter by custom taxonomy. In addition, he would like a user to be able to navigate through a hierarchical gallery with folders (that display a thumbnail) for each level of the hierarchy. I started by creating a custom post type for "Artwork". I then created several custom taxonomies attached to this CPT. Each "Artwork" cpt has …
Category: Web

nextgen pro horizontal filmstrip moves up as browser narrows

Here's the site... I'm trying to keep the top of the images in my slideshow at the same height. But as I make my browser narrower, the images and thumbnails move higher and higher. The movement is gradual, not all at once, so I suspect it is correlated with the viewport width. I've tried adjusting CSS but nothing I can find seems to control the creeping height. Appreciate any and all suggestions!
Category: Web

How to find the WordPress Nextgen galleries which are not used in WordPress posts?

I am using WordPress with Nextgen Gallery by Alex Rabe for quite sometime. Once upon a time I had a good amount galleries in my website which were used in many posts through nextgen gallery shortcode. But for quality enhancement I have deleted many posts but the galleries related to those posts remain there in file system as orphan. How to find the galleries not used in post database? Table added by nextgen gallery: wp_ngg_gallery Column Type Null Default Comments …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.