WordPress.org

Ready to get started?Download WordPress

Forums

WTI Like Post
display like/dislike value only on index.php (3 posts)

  1. radiofranky
    Member
    Posted 1 year ago #

    Hi,
    I was wondering if is possible to show the like/dislike value on index.php without the option of voting.

    It the actual post content, the voting option will be shown.

    thanks

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

  2. Mohidul Islam
    Member
    Posted 1 year ago #

    I am also trying to do this.
    Any one help me plz.

  3. webtechideas
    Member
    Plugin Author

    Posted 1 year ago #

    There is no direct functionality available for this but you can do this by modifying the code a bit.

    - A css class 'jlk' is being used to trigger the click event to make the ajax call. You will find this inside GetWtiLikePost function.
    - Modify the code for generating this class dynamically. Use a variable instead and use following code to assign value to that variable.

    if(!is_home())
    {
       $class = 'jlk';
    }

    The above code will assign the class only on inner pages not on home page.

    Please let me know if this helped or not. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.