Forums

[Plugin: NextGEN Gallery] display full url and not only ImageURL from thumbs (2 posts)

  1. francoismarlane
    Member
    Posted 1 year ago #

    Hello there,

    I'm having problems with a custom gallery I try to build with the NextGen gallery. Here's the issue:

    I display thumbs like this in gallery.php:

    <li><a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >

    Works fine. But that's not what I need.
    I want my thumbs to link the PAGE where the image is "stored" and not only the image itself. Like the $image->previous_image_link and $image->next_image_link do, but for every image in my thumbs collection.

    Instead of:
    <a href="http://localhost/wp-content/gallery/gallery-name/myImage.jpg">
    I would like my thumbs to have that kind of link:
    <a href="http://localhost/?p=52&pid=7">

    Does anyone know how to do this?
    Thanks a lot!

  2. francoismarlane
    Member
    Posted 1 year ago #

    OK, I've got it.
    $image->pidlink

    Fuck me!
    Isn't there a DOCUMENTATION somewhere about $image variable (methods & attributes)?

Topic Closed

This topic has been closed to new replies.

About this Topic