Hi, Crocos. Question regarding Dynamic Visibility: is it possible to show a specific object if a user has 0 posts? For example in the front-end, under account page I would like to create a button saying: [ WRITE YOUR FIRST POST ]. I hope I made it clear. Cheers
Will this work for CPT that members are posting to? i.e. As Student member/(user role) are posting to a student CPT and would need to include both firstname/lastname
@@Crocoblock Thank you, I already have a users listing but there are 4 custom user roles. As the code is will it work for all user roles? Each user posts to their own CPT (4 cpts)
Hello! Could you please check the written instructions here? crocoblock.com/knowledge-base/tips-and-tricks/displaying-only-users-with-posts-in-a-listing/
Hi, Crocos.
Question regarding Dynamic Visibility: is it possible to show a specific object if a user has 0 posts? For example in the front-end, under account page I would like to create a button saying: [ WRITE YOUR FIRST POST ].
I hope I made it clear.
Cheers
Hi :)
you can use the Query has items condition in the dynamic visibility
where can I find the PHP code you pasted , can not find that PHP code in that knowledge base documentation
you can find it here in the article crocoblock.com/knowledge-base/tips-and-tricks/displaying-only-users-with-posts-in-a-listing/
Will this work for CPT that members are posting to? i.e. As Student member/(user role) are posting to a student CPT and would need to include both firstname/lastname
as it works :)
you need to insert the button to the listing of CPTs which are chosen as corresponding cpts for the cct
@@Crocoblock Thank you, I already have a users listing but there are 4 custom user roles. As the code is will it work for all user roles? Each user posts to their own CPT (4 cpts)
Is it possible to show the most recent post of each user in this same list?
Where is the missing code?
Hello! Could you please check the written instructions here?
crocoblock.com/knowledge-base/tips-and-tricks/displaying-only-users-with-posts-in-a-listing/