Hi Steve,
Try following PHP snippet to open listing link in a new tab from add listing page.
/**
* Open listing link in a new tab from add listing page.
*/
function gd_snippet_191231_super_duper_widget_output( $output, $instance, $args, $super_duper ) {
if ( $output != '' && ! empty( $super_duper ) && ! empty( $super_duper->options['base_id'] ) && in_array( $super_duper->options['base_id'], array( 'gd_post_title', 'gd_post_images' ) ) ) {
// Add listing page.
if ( ! geodir_is_page( 'add-listing' ) ) {
return $output;
}
$output = str_replace( array( ' href="http', " href='http" ), array( ' target="_blank" href="http', " target='_blank' href='http" ), $output );
}
return $output;
}
add_filter( 'wp_super_duper_widget_output', 'gd_snippet_191231_super_duper_widget_output', 20, 4 );
Regards,
Kiran