WordPress.org

Forums

WTI Like Post
[resolved] About the placement of likes and dislikes (7 posts)

  1. gamesnepal
    Member
    Posted 3 years ago #

    Hi,

    I really like this plugin. This is the best one for adding a like and a dislike button to our posts. But I want to learn to do a certain thing. After activating and setting up the plugin, I see that the like/dislike buttons are shown at the bottom of the post/top of the post (as per our selection). But I am not able to get the buttons appear where I want to. I want the buttons to appear after the post and after a certain amount of things placed below the post.

    How do I do that? Which part of the plugin (or maybe the template) do I have to edit so that I can be able to customize and pin point the location of the like dislike button?

    I also wanted to know how a plugin like this one is able to add stuffs to the end of the post without editing the template file? How is such a process carried out?

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

  2. houseofstrauss
    Member
    Posted 3 years ago #

    A agree with gamesnepal, it would be useful to have a template tag to place the buttons anywhere we want.

  3. elpitaj
    Member
    Posted 3 years ago #

    Use this little tag :

    <?php GetWtiLikePost();?>

    :)

  4. webtechideas
    Member
    Plugin Author

    Posted 3 years ago #

    thanks elpitaj. gamesnepal, you can try with the above answer. this process is carried out by the wordpress filter functionality for post/page content. you can find more details here

  5. gamesnepal
    Member
    Posted 3 years ago #

    That is awesome thanks. When I use the code <?php GetWtiLikePost();?> I can display the like and dislike button wherever I want. But at the same time the post also has the other like and dislike button which is generated automatically. How can I disable that?

    I tried disabling the link/dislike button on all categories hoping that only my code would be displayed but the buttons did not get displayed overall.

    Is there a workaround for this?

  6. webtechideas
    Member
    Plugin Author

    Posted 3 years ago #

    you can do that by commenting the following line

    add_filter('the_content', 'PutWtiLikePost');

    inside wti_like_post.php around line no 714.

    This code generate the buttons automatically. This is not the ideal solution but will work for you :) If you want to use the default mode as it was there in the plugin, then you will have to uncomment this line.

  7. gamesnepal
    Member
    Posted 3 years ago #

    That just solved all my problems. Thanks a lot for all the support. Now this plugin is my favorite over the other one (GD Ratings which is over complicated if you ask me). God Bless

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WTI Like Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic