WordPress.org

Ready to get started?Download WordPress

Forums

WTI Like Post
Like/Unlike Function Reference in AJAX template (1 post)

  1. blurb
    Member
    Posted 1 year ago #

    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!

    http://wordpress.org/extend/plugins/wti-like-post/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.