function acf_meta_tags_divi() {
if (is_singular()) {
$title = get_the_title();
$description = get_field('meta_description');
$image = get_the_post_thumbnail_url(null, 'full');
$url = get_permalink();
// Fallbacks
if (empty($description)) {
$description = get_the_excerpt() ?: 'Default meta description here.';
}
if (!$image) {
$image = 'https://car-driving-school.ca/wp-content/uploads/2025/02/Laurentian-Logo-with-TTCC.png';
}
echo '' . "\n";
// Open Graph
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
// Twitter
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
}
}