Hello,
I know I can call the function by placing <?php GetWtiLikePost();?> inside my WordPress templates, but how can I reference it here???
(This partial code prepares data for an AJAX call)
foreach($posts as $post){
$rows .= '
<li class="jta-'.$rowclass.' new_fetched_items" style="display:none;">
<div>'.get_avatar( $post['post_author'], 50 ).'
</div>
'.GetWtiLikePost().' /// THIS DOESN'T WORK
<span class="timestamp">
'.human_time_diff( get_the_time('U',$post['ID']), current_time('timestamp') ) . ' ago'.'
</span>
</div>
</li>';
Thanks!