Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26988

    Hi,

    I have 4 portfolio items on my home page. I am able to easily link the photo to a “page” however when you click on the title below the image it just opens the image in a post format and can’t see where I can link it to the same page as the image.

    I’m kind of new at this so it might be a WP 101 kind of question!

    Thanks for your help.

    #132353

    In functions-coherence.php replace:

    $title = "<a href='".$link."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".$title."'>".$title."</a>";

    with

    $linktarget = '';
    $slides = avia_post_meta($id, 'slideshow');

    if(!empty($slides[0]) && get_post_type($id) == 'portfolio'){
    $linktarget = avia_get_link($slides[0], 'slideshow_', '', $id);
    }

    if(empty($linktarget)){
    $linktarget = get_permalink();
    }

    $title = "<a href='".$linktarget."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".$title."'>".$title."</a>";

    #132354

    Perfect. Thank you!

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

The topic ‘Link Portfolio Item to a Page’ is closed to new replies.