• Hi, my goal is to add your voting system to a custom WP_User_Query.
    I’ve tried this but obviously it doesn’t work because the $post_id is not correct.

    // The User Query
    $user_query = new WP_User_Query( $args );				
    // The User Loop
    if ( ! empty( $user_query->results ) ) {
       foreach ( $user_query->results as $user ) {	
       ...
       echo do_shortcode('[thumbs-rating-buttons]');
      }
    }

    Any help please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ricard Torres

    (@quicoto)

    Hello there,

    Please notice it can only be used in posts, custom posts types and pages.

    It was not designed, nor tested to work with users or any other data type.

    Best regards.

    Ricard

    Thread Starter Troglos

    (@troglos)

    Thanks for the reply.
    Sure I know that, but I was wondering if I could extend it to the Users too with some modification.

    Plugin Author Ricard Torres

    (@quicoto)

    I guess it can be extended. I wouldn’t know how, though.

    Best of luck!

    Ricard

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use it with WP_User_Query’ is closed to new replies.