Reply To: Portfolio

#563
livemesh
Keymaster

Here is the code for what you asked for –

Add this function to /framework/functions/thumbnail-functions.php

function mo_get_portfolio_credit($post_id) {
    $project_author = get_post_meta($post_id, '_portfolio_author_field', true);
    if (!empty($project_author)) {
        return '
' . htmlspecialchars_decode($project_author) . '
'; } return ''; }

Modify the line 116 of this file as below –

function mo_get_thumbnail($args) {
.....................
                $post = get_post($post_id);
                if ($post->post_type == 'portfolio')
                    $image_info .= mo_get_portfolio_credit($post_id);
                else
                    $image_info .= mo_get_taxonamy_info($taxonamy);
...................
}

and then place the below styling in Custom CSS tab or custom.css –

.image-info .portfolio-credit {
position: relative;
color: #FFF;
top: 10%;
}

Hope this helps.