Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #92

    Hi there,

    I have tried checking through the forum on themeforest to no avail. So sorry if you have answered this before.

    I want to control the link on the portfolio page. So when a user clicks on a thumbnail I want to direct them to a page within the site. instead of a bigger image – turning off the lightwindow.

    Hope you can help

    Many Thanks




    in templte portfolio.php change line 45 to match this snippet:



    Thanks! Is there a way I can specify a different link so that it goes to a different page? Maybe set a custom field to set the redirection link after clicking the portfolio thumbnail?

    Thanks again!


    of course. if you use a custom field with the name “new_link” and add the link value you can retrieve this value in your template file directly above the link output:

    $link = get_post_meta($post->ID, "new_link", true);

    then replace get_permalink() in the snippet above with $link


    Fantastic! Thank you for your help and the fast response!


Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Portfolio Links’ is closed to new replies.