Support » Plugin: NextCellent Gallery - NextGEN Legacy » Theme conflict breaks image and external links

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Matthew

    (@kidsguide)

    Volunteer Moderator

    That is not a WordPress theme.

    Can you explain more? I don’t understand.

    I created a new template file gallery-link.php. In it I replaced the href for the thumbnail to target a custom field (with links in it) instead of the image url.
    So instead of:
    <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>"....
    I’m using:
    <a href="<?php echo $image->ngg_custom_fields["Link"] ?>" title="<?php echo $image->description ?>"....
    This opens whatever link I define in the link custom field rather than the full size image when the thumbnail is clicked.In this theme only, the output gets mangled, as described above – href and src are transposed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme conflict breaks image and external links’ is closed to new replies.