On the function below, after echo '</span>';
, I want to add this a piece of code:
<a href="<?php $key="link"; echo get_post_meta($post->ID, $key, true); ?>" target="_blank">Images Source</a>
But I dunno how to do it, any suggestions on how to do this?
//echo '<div class="pull-left">';
echo in_array( 'date',$meta_info ) ? sprintf( '<span class="post-meta-info posted-on">' . apply_filters('yt_icon_date_time', '<i class="fa fa-clock-o"></i>') . ' %1$s</span>',
$time_string
) : '';
if( in_array( 'comments',$meta_info ) ){
echo '<span class="post-meta-info with-cmt">' . apply_filters('yt_icon_comment', '<i class="fa fa-comments"></i>') . ' ';
comments_popup_link( __( '0 Comments', 'theme' ), __( '1 Comment', 'theme' ), __( '% Comments', 'theme' ));
echo '</span>';
}
//echo '</div>';