Question on a close topic
1/ Where should I paste the code kindly shared on this https://wpgeodirectory.com/support/topic/reviews-16/ ? I have the same need.
I will also ask my developer but if you can answer this :
2/ If I need to use this for several CPT, do I have to add multiple time the code with the different CPT or can I add CPT next to each other with a comma or … ?
…
if ( geodir_is_page(‘detail’) && is_user_logged_in() && geodir_get_current_posttype() == ‘gd_place’;’gd_XXX’;’gd_YYY’ ) {
$current_user = wp_get_current_user()->ID;
OR
…
if ( geodir_is_page(‘detail’) && is_user_logged_in() && geodir_get_current_posttype() == ‘gd_place’ )
if ( geodir_is_page(‘detail’) && is_user_logged_in() && geodir_get_current_posttype() == ‘gd_XXX’ )
if ( geodir_is_page(‘detail’) && is_user_logged_in() && geodir_get_current_posttype() == ‘gd_YYY’ ) {
$current_user = wp_get_current_user()->ID;
OR ?
…
3/ Is it possible to disable owners for comment/review on their own listings BUT to make owners and other users able to answer to a selected comment ?
4/ Would you be kind to share the code to prevent multiple reviews from same users.
5/ and is it possible (and how) to allow users “XY” to answer to someone “Z” having posted a comment on the first and only comment of “XY” ?
6/ is it possible to make anyone having posted a comment to be able to delete the comment he/she made ?
Regards,
Christophe