Hello Scott,
Use following code snippet to add custom field location as you requested.
// Add a new output location to the list of places a custom field can be output.
function _gd_snippet_custom_field_locations( $show_in_locations, $field_info, $field_type ) {
$show_in_locations[ '[above_image_slider]' ] = __( "Above Image Slider", 'geodirectory' ); // Above image slider
$show_in_locations[ '[below_image_slider]' ] = __( "Below Image Slider", 'geodirectory' ); // Below image slider
return $show_in_locations;
}
add_filter( 'geodir_show_in_locations', '_gd_snippet_custom_field_locations', 10, 3 );
// Outputs fields above detail page image slider.
function _gd_snippet_location_above_image_slider() {
echo geodir_show_listing_info( 'above_image_slider' );
}
add_action( 'geodir_details_main_content', '_gd_snippet_location_above_image_slider', 29 );
// Outputs fields below detail page image slider.
function _gd_snippet_location_below_image_slider() {
echo geodir_show_listing_info( 'below_image_slider' );
}
add_action( 'geodir_details_main_content', '_gd_snippet_location_below_image_slider', 31 );
Add field to positions “Above Image Slider” & “Below Image Slider” from field settings.
Kiran