Currently not in plan, there is too many cities so it does not make sense to define it on city level.
Better function will have to be provided.
I could give up on All in one SEO plugin using the function below, but can't manage to make it perfect.
I have created this a bit earlier, but still can't manage to make it as I want...
I only want this function to create my text .. only for cities... I would like to make this function know when meta description is generated by ALL IN ONE SEO PLUGIN, and only generate the words when ALL IN ONE SEO PLUGIN don't generated for cities for example.
Can you help modify it please?
<?php
if(meta_description() != '') {
$city = osc_search_city();
$search_pattern = osc_search_pattern();
$meta_desc = "";
if (!empty($search_pattern) && !empty($city)) {
// Search by keyword and city
$meta_desc = "Looking for ".$search_pattern." in " . ucfirst(strtolower($city)) . "? ";
} elseif (!empty($search_pattern)) {
// Search by keyword only
$meta_desc = "Looking for Free Classifieds with ".$search_pattern."? ";
} elseif (!empty($city)) {
// Search by city only
$meta_desc = "Looking for Free Classifieds in " . ucfirst(strtolower($city)) . "? ";
}
if (!empty($meta_desc)) {
$meta_desc .= "Find Free Classifieds";
if (!empty($search_pattern)) {
$meta_desc .= " with ".$search_pattern;
}
if (!empty($city)) {
$meta_desc .= " in " . ucfirst(strtolower($city));
}
$meta_desc .= ". Free Classifieds";
if (!empty($search_pattern)) {
$meta_desc .= " with ".$search_pattern;
}
if (!empty($city)) {
$meta_desc .= " in " . ucfirst(strtolower($city));
}
$meta_desc .= ", recently added.";
}
?>
<meta name="description" content="<?php echo osc_esc_html($meta_desc); ?>" />
<?php
}
?>