WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NG Gallery Custom Fields] Image Not Linking Corrrectly (9 posts)

  1. jaeeun
    Member
    Posted 2 years ago #

    Hi,

    I'm using NextGen Custom Fields to link images to different pages. One of the images is linked to a page that uses Portfolio Slideshow plugin, and the address of the page is is

    http://jaeeunlee.com/work/legless-girl-series/

    but instead it redirects to

    http://jaeeunlee.com/portfolio_slideshow/legless-girl-series/

    and shows an error message.

    This is a link to my homepage and the image I'm referring to is the bottom right one;

    http://jaeeunlee.com/

    I'd appreciate any help.

    Regards,
    Jaeeun

  2. shauno
    Member
    Posted 2 years ago #

    Hey jaeeun

    That's quiet a weird one. My guess is that you have something funky with the markup. Paste the contents of your gallery template to pastebin.com and post the link for me to have a look.

  3. jaeeun
    Member
    Posted 2 years ago #

    Hi Shauno,

    here's the link;

    http://pastebin.com/Z3DkD4Dm

    Thanks!

  4. shauno
    Member
    Posted 2 years ago #

    I haven't tested it yet, but I see on line 47 you open an anchor tag and never close it. Try closing it properly and let me know if there are still problems. Then I can investigate more.

    [ Signature moderated. ]

  5. jaeeun
    Member
    Posted 2 years ago #

    Hi, I closed it like this;

    ngg_custom_fields["Link"]; ?>">

    But the problem persists.

    Please let me know if you find a solution!

    Thanks,
    Jaeeun

  6. shauno
    Member
    Posted 2 years ago #

    You need to paste code inside the backticks (click the code button above).

    I used your gallery.php template (with the fixed anchor) in a test install, and it worked fine. I would guess there is something else in your code, but I see you have changed your link so I cannot look.

    Good luck

  7. jaeeun
    Member
    Posted 2 years ago #

    Sorry, but I'm not sure which code button you're referring to. Also, I believe the link to my gallery.php template is still the same.

    Thanks

  8. shauno
    Member
    Posted 2 years ago #

    I was talking about the code you added in your previous post. You can see the forum has tried to show it and it looks broken.
    But that doesn't matter.

    I looked at the wrong link when I came back, which is why I thought you have changed the page.

    Anyway, the problem is that you do not have http:// in front of your URLs. It looks like WordPress is doing it's best to figure out the URLs, and sometimes getting it right, and sometimes not. Make sure you add http:// in the custom field values and I think it will work.

    [ Signature moderated. ]

  9. jaeeun
    Member
    Posted 2 years ago #

    Wow, that easily fixed it! Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Topic