Here is an example of doing so for Vkontakte (this code should be placed in your theme’s functions.php file):
add_filter('drts_social_medias', function($medias) {
$medias['vkontakte'] = [
'type' => 'textfield',
'label' => 'VKontakte',
'icon' => 'fab fa-vk',
'default' => 'vkontakte',
'placeholder' => 'Enter VKontakte username.',
];
return $medias;
});
add_filter('drts_social_media_url', function($url, $name, $value) {
if ($name === 'vkontakte') {
$url = 'https://vk.com/' . $value;
}
return $url;
}, 10, 3);
You’ll need to create a custom element template file. You might put the following code in the file:
<?php echo esc_html($entity->getSingleFieldValue(‘field_name’));?> – <?php echo esc_html($entity->getSingleFieldValue(‘field_surname’));?>
Not currently, but it is in development and will likely be called fieldsets.
This is not currently possible, currently one has to fill out all the required fields even if one isn’t actually publishing the listing before the listing will save.
In addition to creating the field for the backend (e.g. adding a listing) you also need to add it to the display for that particular listing type.
It is not, right now it is only possible to have the conditions act upon the field that is having conditions set.
This isn’t currently possible.