Problem:
I am building a site which includes reviews for users. I am trying to display the CRED form for review submission on the profile page (another custom post type). However I only want to display the form to create a review if there are no existing reviews by the logged in user for the profile being displayed.
This is the function code I wrote:
https://toolset.com/forums/topic/conditional-display-checking-that-no-posts-exist-by-current-user/#post-683641
Solution:
It is a custom codes problem, please check this:
1) Output the shortcode [review_exists] directly, check if it is does output the correct number count of current user.
2) Edit your codes as below:
https://toolset.com/forums/topic/conditional-display-checking-that-no-posts-exist-by-current-user/#post-684133
And test again.
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-conditional
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Our next available supporter will start replying to tickets in about 1.76 hours from now. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 5 replies, has 2 voices.
Last updated by 6 years, 7 months ago.
Assisted by: Luo Yang.