Reply To: Portfolio to External Link

#1056
Livemeshlivemesh
Keymaster

For forwarding to the post link in case project url is not set, you can just change the logic a bit –

                $image_info .= '
'; $project_url = ''; if ($context == 'portfolio') { $project_url = get_post_meta($post_id, '_portfolio_link_field', true); } if (!empty($project_url)) { $image_info .= '

' . $post_title . '

'; } else { $image_info .= '

' . $post_title . '

'; }