Hello,
I have created the following code:
add_filter( 'auto_listings_metabox_details', function ( $fields ) {
$prefix = '_al_listing_';
$fields[3] = array(
'name' => __( 'Mise en circulation', 'auto-listings' ),
'desc' => __( 'A custom description', 'auto-listings' ),
'id' => $prefix . 'mise_circulation',
'type' => 'text',
);
return $fields;
} );
And I put it in the file you gave me but it doesn’t work, I don’t have any fields displayed on the car page.
code:
$details_array = array(
__( 'Vehicle', 'auto-listings' ) => auto_listings_vehicle(),
__( 'Price', 'auto-listings' ) => auto_listings_price(),
__( 'Mise en circulation', 'auto-listings' ) => auto_listings_mise_circulation(),
auto_listings_miles_kms_label() => auto_listings_odometer(),
__( 'Color', 'auto-listings' ) => auto_listings_meta( 'color' ),
__( 'Registration', 'auto-listings' ) => auto_listings_meta( 'registration' ),
__( 'Transmission', 'auto-listings' ) => auto_listings_transmission(),
__( 'Body', 'auto-listings' ) => auto_listings_body_type(),
__( 'Drive Type', 'auto-listings' ) => auto_listings_drive_type(),
__( 'Engine', 'auto-listings' ) => auto_listings_engine(),
__( 'Fuel Economy Combined', 'auto-listings' ) => auto_listings_fuel_economy(),
);