Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Post Likes of User #412
    desert333
    Participant

    ALL SOLVED.

    in reply to: Post Likes of User #411
    desert333
    Participant

    Thank you for reply.

    Quick question – template “content-likes.php” is designed to shows likes of LOGGED In user only (means this user can see ONLY his likes when is logged in) ? Or to show likes of ANY User I want by going to his user page (means anybody can see likes of that user doesnt have to be logged in) ?

    =========================================================

    Regarding your reply.
    Yes database is fine , there are stored likes of user I am requesting (anyway Your Widget is working perfectly on that)

    The bug is in the content-likes.php template file. I double checked that and it doesnt find any user name.

    I tried with :
    <?php echo $author; ?>
    It replies with nothing, means it doesnt catch user…

    The problem is with :
    $author = get_user_by('slug', get_query_var('author_name'));

    I forced to show likes to only specific user and it worked fine.

    maybe there is a way to get user id from link ? each user has a link like http://www.domain.com/user/XXXX
    – So we can feed that data XXXX then its done.

    Thanks

    in reply to: Post Likes of User #405
    desert333
    Participant

    1. Can you help me get this code to show post likes of logged user (from widget) ?
    So I can use on inside page (not sidebar)

    2. Also I need to make work post likes of user page (to show all post likes for each user on their profile page) content-likes.php gives error nothing found… there is any variable I have to change/fix ?

    Thanks for help!

    in reply to: Custom Like Button #404
    desert333
    Participant

    Thank you for reply.

    I already figure it out… BUTTON SOLVED

Viewing 4 posts - 1 through 4 (of 4 total)