I am using the WP Proposals plugin and I’d like to pull published proposals for currently logged in users.
I’m using post_type=proposal&taxonomy=clients
but it’s not working. So, I’m missing something, right?
I am using the WP Proposals plugin and I’d like to pull published proposals for currently logged in users.
I’m using post_type=proposal&taxonomy=clients
but it’s not working. So, I’m missing something, right?
Or perhaps it is something like post_type=proposal&clients={{ user.logged_in }}
but this doesn’t work either.
Hi Daniel,
Thanks for reaching out.
I have tested the Query String and found it is working on a test page I added. Please remember to add the Looper Consumer to elements that show the value.
I have added the Test Page URL in the secure note, you can replicate it from that also.
Thanks
Hello,
It’s working but not showing the right proposals on logging in. It should only show based on client/logged in user. I am somewhat unsure if the client taxonomy is linked to users to be honest. Can you offer a little advise here e
Thank you for the update. Since there is no connection between the clients taxonomy and the actual logged-in user, we have to rely on the client slug, which in this case is the name of the client (e.g., daniel-finch , rachel-pearson). This is the updated query string.
post_type=proposal&tax_query[0][taxonomy]=clients&tax_query[0][field]=slug&tax_query[0][terms]={{ user.display_name|lower|replace({' ' : '-'}) }}&tax_query[0][operator]=IN
You have to make sure that the client name contains at least two words.
Let us know if you need more info.