Support Forums for LiveMesh Themes & Plugins › Forums › Enigmatic Theme Support › Portfolio to External Link
Tagged: portfolio, thumbnail_functions
- This topic has 5 replies, 2 voices, and was last updated 12 years, 9 months ago by
livemesh.
-
AuthorPosts
-
July 1, 2013 at 4:03 pm #1030
jbwa
MemberHey, there. Theme is incredible. Love using it. I’d like to link any portfolio listing to an external URL – the project_url. I’ve attempted adding $project_url = get_post_meta($post_id); to the thumbnail_functions.php file and then changing the a href from post_link to project_url hoping this would work but to no avail. Do you think you could assist?
July 2, 2013 at 2:46 am #1031livemesh
KeymasterTry this in thumbnail-functions.php line number 107 onwards. It works fine.
if (mo_show_image_info($context) || $show_image_info) { $image_info = ''; $image_info .= ''; if ($context == 'portfolio') { $project_url = get_post_meta($post_id, '_portfolio_link_field', true); $image_info .= '' . $post_title . '
'; } else { $image_info .= '' . $post_title . '
'; } ......July 3, 2013 at 2:44 pm #1046jbwa
MemberThanks! That worked. However, if there isn’t a project URL than it doesn’t forward to the portfolio URL. For now, I’ll just keep it as is though. Thanks again for your help.
July 4, 2013 at 4:21 am #1056livemesh
KeymasterFor 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 . '
'; }July 5, 2013 at 4:05 pm #1083jbwa
MemberThank you for the help. However, I think I’d rather hire you to complete this for me. Is there a process whereby I can hire your services to assist?
July 6, 2013 at 11:02 am #1088livemesh
KeymasterSorry – I am not available for hire. However, I do my best to help in this forum with minor customizations like the above. If you need me to complete this, pls send out the ftp credentials and wordpress credentials for the site and I can get it done for you. Or I can email you through the modified file(s) as well which you can replace on the server yourself. You can email me through my ThemeForest profile page http://themeforest.net/user/livemesh (bottom right box). Thank you.
-
AuthorPosts
- The forum ‘Enigmatic Theme Support’ is closed to new topics and replies.