Advertisement
MichealKennedy

Adding something at end of each WordPress post

Apr 16th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. <?php
  2. function add_like_dislike($content) {
  3.         if(!is_feed()) {
  4.                 $content.= '<div class="likedislike">';
  5.                 $content.= '<button>Like | Dislike</button>';
  6.                 $content.= '</div>';
  7.         }
  8.         return $content;
  9. }
  10. add_filter ('the_content', 'add_like_dislike');
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement