• Resolved Cat

    (@stitchyrocks)


    Hi,

    Thank you for your previous response on how to check if a user has a rated a post. Expanding on that, I was wondering how I could use it in a WP_Query to look only for posts that a user has not voted on?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Sorry, that is not possible.

    Thread Starter Cat

    (@stitchyrocks)

    In case anyone is interested in doing this, I ended up using a loop to look for the IDs of the posts that the user has already rated and storing the IDs in an array.

    Then in the WP query itself, I used post__not_in and passed in the array of IDs from earlier so only the posts that have not been rated by the user is retrieved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘use check_rated_username() in a wp_query’ is closed to new replies.