How displaying reviews on a custom page

WordPress Business Themes Forums Responsive Themes Auction Theme How displaying reviews on a custom page

How displaying reviews on a custom page

December 3, 2017
 Artur

  • Artur
    Newbie 12 points

    Hi,

    I added such a code on the buddypress profile page

    <?php echo _user_trustbar($authorID, ‘inone’); ?>

    the bar is displayed but does not show the correct number of ratings
    ————–
    I also wanted to add product display
    <i class=”glyphicon glyphicon-search”></i> /?s=&uid=<?php echo $post->post_author; ?>” style=”color:#5CB85C”>SHOW ITEM

    but also does not show user’s products .. it shows all (/?s=&uid=0)

    There is a global variable? which should be added to this code?

    Best regards

    Attachments:
    You must be logged in to view attached files.
    December 3, 2017 at 6:24 am
  • Josh
    Josh
    Super Guru 13,887 points

    Hello Artur,
    Try using $user_info = get_userdata($authorID); in your file

    December 4, 2017 at 2:41 pm

  • Artur
    Newbie 12 points

    Hello

    thanks Josh for the answer

    I have already tried it at the beginning :)

    if (!defined(‘THEME_VERSION’)) { header(‘HTTP/1.0 403 Forbidden’); exit; }
    $user_info = get_userdata($authorID);

    no error, but it does not work correctly

    I just want to move the AT user profile to the buddypress profile.
    Buddypress has more options to follow users etc.

    ps.I also thought about transferring buddypress options to AT author.php, but the effect was similar ..

    Attachments:
    You must be logged in to view attached files.
    December 15, 2017 at 7:17 pm
Viewing 3 posts - 1 through 3 (of 3 total)

Didn't find what you were after?

Chat with us now

or contact our support team