Hi,
I found these problems when setting a custom link for portfolio items:
1. Portfolio grid only links with image to the custom link. Title is plain text, no link at all.
2. Magazine with portfolio entries ignores custom links completly and links to the default permalink.
My quick and dirty fix:
portfolio.php, around line 424
if($custom_link)
{
$title_link = $custom_link;
$link = $custom_link;
}
magazin.php around 528, after $link
$custom_link = get_post_meta( $entry->ID ,'_portfolio_custom_link', true) != "" ? get_post_meta( $entry->ID ,'_portfolio_custom_link_url', true) : false;
if($custom_link)
{
$link = $custom_link;
}
Hey Gero,
Could you post a link to where we can reproduce the issue please?
Best regards,
Rikard
Hi,
if you take a look at those php files mentioned, you can see that portfolio.php is actually written that way, so custom links can be treated differently. I don’t know why. Where as magazine.php completly lacks any custom link treatment. I fixed those for me, so everything is working as intended on my site now.
I would need to recreate the default setup just to show you. But you can see the working elements in action on my site. Hope that helps to illustrate the problem.