Use it with WP_User_Query
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Use it with WP_User_Query’ is closed to new replies.