Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21928

    Hi,

    I use portfolio to link to pages. With pictures it works perfect but the titles link to the picture not to the post. how can i fix this?

    thank you.,

    #113605

    Hi,

    Open up loop-portfolio.php, located in the includes folder, and search for

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

    and replace it with

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

    Then search for:

    if(!empty($avia_config['portfolio_ajax'])) $sort_classes .= " ajax_portfolio";

    and replace it with:

    if(!empty($avia_config['portfolio_ajax'])) $sort_classes .= " ajax_portfolio";

    $slides = avia_post_meta(get_the_ID(), 'slideshow');

    if(!empty($slides[0])){
    $linktarget = avia_get_link($slides[0], 'slideshow_', '', get_the_ID());
    }

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

    #113606

    thanks this worked like a charm! :)

    #113607

    Hi valcs,

    Glad that Peter helped you. :)

    Cheers,

    Ismael

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

The topic ‘Title links in the portfolio Angular’ is closed to new replies.