Title shown twice
-
Hallo Jan,
first of all. I like the plugin wp-sponsors, because it is based on the wordpress boilerplate ans it can do a text and image output.The problem: I am use the plugin with the following shortcode setting:
[sponsors images=no description=yes title=yes size=full style=list]
so I get a title <h3>’.get_the_title().'</h3> followed by get_the_title(). I changed class-wp-sponsors-shortcode.php line 107-112 to
// Check if we should do images, just show the title if there’s no image set
if($images){
$sponsor .= $shame->getImage(get_the_ID());
} elseif ($title === false) {
$sponsor .= ‘<h3>’.get_the_title().'</h3>’;
}Maybe the Title output if no image is present should be removed.
Regards Frank
- The topic ‘Title shown twice’ is closed to new replies.