Jump to content
Sign in to follow this  
saltydisciple

How about adding an option to add URL to individual images using the Nextgen Gallery as image source

Recommended Posts

saltydisciple

Hi, I was really frustrated for not being able to add a custom field in the Nextgen gallery to individual images. I wanted to have a different link in every image. I was able to do this by installing the WP plugin Nextgen Gallery Custom Fields. And then modifying the gallery-plcarousel.php with the instructions provided withe Custom fields plugin. Adding a similar native option to PlatformPro would make atleast me REALLY HAPPY :D Just a thought.

Share this post


Link to post
Share on other sites
nicoleisthenewblack
Hi! how did you do this? I am struggling for DAYS trying to get this to work. according to directions online this is what i did. i followed the direction and added a custom field called links, set the effects to none downloaded gallery.php and changed it to gallery-galleryname.php my gallery is called featured so i changed it to gallery-featured.php put this is a folder i created called nggallery in the pageline folder (someone said if it was a framework i shouldnt put it in the child theme folder) so the path to file is wp-content/themes/pagelines/gallery-themes.php i changed the code to add custom link am i missing something? i think i am suppose to tell nextgen to use nggallery id template: feature but i dont know where to do this? gah. i might cry. you said you mentioned modifying gallery- plcarousel. what code did you add exactly thanks my link is nicoleisthenewblack.com

Share this post


Link to post
Share on other sites
nicoleisthenewblack
nevermind. i guess i had to type it out. it works now in case anyone else is searching. i wanted the image in the pageline carousel to go to a specific link using nextgen gallery images i created the custom field called Link. populated each field with the right link. then in the pagelines carousel .php (plcarousel.php) i entered this ngg_custom_fields["Your Field Name Here"]; ?> in the a href field so it looked like a href ="ngg_custom_fields["Link"]; ?>" so now my carousel images will direct traffic to different blog post. well once i add the alttext as text under the carousel. but this is a mini victory so i am calling it night on pagelines.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×