Home Forums WTI Like Post PRO vote button code Reply To: vote button code

#313
Webtechideas
Keymaster

The best way to get these things is to look into the codes.

For like button, it should be something like
<a rel="nofollow" data-nonce="{$data_nonce}" data-post_id="{$post_id}" data-task="like" class="lbg-style1 like-{$post_id} jlk"><img title="Like" src="{$image_url}"><span class="lc-{$post_id} lc">{$like_count}</span></a>

For unlike button, it should be something like
<a rel="nofollow" data-nonce="{$data_nonce}" data-post_id="{$post_id}" data-task="unlike" class="unlbg-style1 unlike-{$post_id} jlk"><img title="Unlike" src="{$image_url}"><span class="unlc-{$post_id} unlc">{$unlike_count}</span></a>

The variables are self-explanatory. If you want to use the plugin buttons, then <?php GetWtiLikePost(); ?> will do the job for you.

Thanks