Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "portfolio2":
- if( get_post_meta($current_post->ID, "_portfolio_thumb", $single = true) != '') {
- return '<img title="' . $current_post->post_title . '" alt="' . $current_post->post_title . '" src="' . get_post_meta($current_post->ID, "_portfolio_thumb", $single = true) . '" class="rounded-all" />';
- } else {
- return get_the_post_thumbnail( $current_post->ID, $context, array( 'alt' => $current_post->post_title, 'title' => $current_post->post_title, 'class' => 'rounded-all' ) );
- }
- break;
Add Comment
Please, Sign In to add comment