Hello,
it is corrupting field entries in the rest of our website. Example : in new posts, we can’t change/add certain fields from the backend.
I have modified PHP snippet to fix conflict on post pages. Now fields are working fine on post pages too.
/**
* Fix select2 conflict with GeoDirectory & Cactus Actor(ct-actor) plugin.
*/
function gd_snippet_190404_select2_conflict() {
$screen = get_current_screen();
$screen_id = $screen ? $screen->id : '';
if ( wp_script_is( 'select2', 'enqueued' ) && wp_script_is( 'cmb-select2', 'enqueued' ) && wp_script_is( 'field-select', 'enqueued' ) ) {
if ( $screen_id && in_array( $screen_id, geodir_get_screen_ids() ) ) {
wp_dequeue_script( 'field-select' ); // Dequeue CMB select2 on GD pages
wp_dequeue_script( 'cmb-select2' );
} else {
wp_dequeue_script( 'select2' ); // Dequeue GD select2 on non-GD pages
}
}
if ( wp_style_is( 'select2', 'enqueued' ) && wp_style_is( 'cmb-select2', 'enqueued' ) ) {
if ( $screen_id && in_array( $screen_id, geodir_get_screen_ids() ) ) {
wp_dequeue_style( 'cmb-select2' ); // Dequeue CMB select2 on GD pages
} else {
wp_dequeue_style( 'select2' ); // Dequeue GD select2 on non-GD pages
}
}
}
add_action( 'admin_enqueue_scripts', 'gd_snippet_190404_select2_conflict', 100 );
—
Backend editing – no tags field (see attachment img2.png)
Frontend editing – tag field appears fine (see attachment img3.png)
In backend it uses WordPress default field to manage tags. Tags field is available in right sidebar(see attachment). Once you start typing keyword it will list matching tags if already exists.
—
Please view attached file (img1.png) to see how an email is dispatched to our client when a listing is renewed. I have blanked out names/domain names but rest is verbatim. So what’s going on here??
Please check now. We have some more email template tags available to add in email notifications. Please check it here all the notifications and available tags. GeoDirectory > Settings > Emails > User emails > “Pre expiry reminders to user” / “Post renew success email to user” / “Post upgrade success email to user” / “Post package downgraded email to user” / “Post expired email to user”
Best Regards,
Kiran