Hallo,
ich nochmal!
Ich habe den All in one Seo MOD installiert. In den Optionen habe ich gewählt "[COLOR=#21759b]Autogenerate Descriptions[/COLOR]" d.h. es werden vom Text die ersten 160 Zeichen genommen und als meta descriptionen gesetzt.
Ich möchte nun, dass vor diesem Satz noch der Titel der Single Seite kommt.
Also <meta description content="if ( is_single() wp_title(''); - Autogenerate Descrioptions">
Der code dafür steht wohl in der all_in_one_seo_pack.php
PHP
if (is_single() || is_page()) {
if ($this->is_static_front_page()) {
$description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
} else {
$description = $this->get_post_description($post);
}
} else if (is_home()) {
$description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
} else if (is_category()) {
$description = $this->internationalize(category_description());
}
if (isset($description) && (strlen($description) > $this->minimum_description_length) && !(is_home() && is_paged())) {
$description = trim(strip_tags($description));
$description = str_replace('"', '', $description);
// replace newlines on mac / windows?
$description = str_replace("\r\n", ' ', $description);
// maybe linux uses this alone
$description = str_replace("\n", ' ', $description);
if (isset($meta_string)) {
//$meta_string .= "\n";
} else {
$meta_string = '';
}
// description format
$description_format = get_option('aiosp_description_format');
if (!isset($description_format) || empty($description_format)) {
$description_format = "%description%";
}
$description = str_replace('%description%', $description, $description_format);
$description = str_replace('%blog_title%', get_bloginfo('name'), $description);
$description = str_replace('%blog_description%', get_bloginfo('description'), $description);
$description = str_replace('%wp_title%', $this->get_original_title(), $description);
$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" />", $description);
Alles anzeigen
ich doktore jetzt schon ewig dran rum..finde aber die Lösung nicht. Hilft mir jemand? wäre nett. Danke!