Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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

    A

    #29775

    Hey,

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

    http://pastie.org/1049960

    #29776

    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!

    #29777

    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

    #29778

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

    A

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

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