Hallo,
Ich habe in meiner functions.php einen Code drin, der dafür sorgen soll, dass die Bilder im Artikelauszug nicht zum Bild selbst verlinken, sondern auf den Post direkt. Dies klappt auch so weit auf der Startseite, nur auf den Archievseiten und Suchergebnissen klappt dies nicht und die Bilder verlinken noch auf sich selbst. Vielleicht kann mir ja jemand helfen :)
Hier der Code:
PHP
// Image in more goes to blog postfunction the_excerpt_imagelink($content){global $post;
// See if the tag exists$pos=strpos($post->post_content, '<!--more-->');
// If on the home page, and the tag exists... change the link!if(is_home() && $pos){$content = eregi_replace('(<img [^>]*>)', '<a href="' . get_permalink() . '" rel="bookmark" class="imagelink">' . '\1</a>', $content);}return $content;}add_filter('the_content', 'the_excerpt_imagelink');