Hi soli004,
The wpp-post-title
class has been present since earlier versions of the plugin, I don’t understand your question.
Hector!
If you look at http://www.digitalworkflow.se at the widgets you have the “class=..etc showing in the widgets together with the title. I dont want this… I only want the title to show. Did you have a look?
Thanks
Yes, sorry. I took a quick look and didn’t see what the problem was and just checked it again and know what you meant.
Problem is that you’re using html tags inside some of your posts titles, that’s what is breaking only some of them. My plugin does attempt to remove all HTML tags from titles, but for some reason some of your posts titles still passed a few malformed HTML tags.
I just reuploaded a fix, please download the plugin again in 30 minutes or so (it will still be version 2.3.1) and install it.
Hi Hector,
I am not using any html tags inside the post titles only in the blogposts!
I tried downloading the updates but it did not change anything!
Thanks
What I can see in two of the “errors” is that I am using “…” in the post title. Can this be the problem? But then I have one post not having “…” in the post title but still have the “class= error”, but this post is broken for some reason… http://www.digitalworkflow.se/adobe-photoshop-cs5/
Thanks
I did also deactivate and activate the plugin and got the following error message!
” The plugin generated 434 indices of unexpected data (unexpected output) during activation. If you get error messages of the type “headers already sent”, problems with flows or other errors, try inactivate or remove this plugin.
??
If you check at your site’s source code, this is what is being printed at your Photoshop’s post:
<a href="http://www.digitalworkflow.se/adobe-photoshop-cs5/" title="Adobe Photoshop <span class=" caps"="">CS<span class="numbers">5</span>" class="wpp-post-title">Adobe Photoshop <span class="caps">CS<span class="numbers">5</span></span></a>
Problem is that your post title has malformed HTML in it. When inserted into the title attribute, things get broken.
Hector,
I did find the problem!
I am using a plugin with name “wp-Typography” it makes the error in your plugin!
Any chance you will have a look on this?
http://kingdesk.com/projects/wp-typography/
Thanks
Sure, I will once I get some spare time.
For the time being, and to prevent the bug from showing on your sidebar, do the following:
# Open wordpress-popular-posts.php using a text editor such as Dreamweaver or Notepad.
# Find this piece of code:
$data = array(
'title' => '<a href="'.$permalink.'" title="'.$title.'">'.$title_sub.'</a>',
'summary' => $excerpt,
'stats' => $stats,
'img' => $thumb,
'id' => $p->id
);
array_push($posts_data, $data);
// PUTTING IT ALL TOGETHER
if ($instance['markup']['custom_html']) { // build custom layout
if ($instance['markup']['pattern']['active']) {
$content .= htmlspecialchars_decode($instance['markup']['post-start'], ENT_QUOTES) . htmlspecialchars_decode($this->format_content($instance['markup']['pattern']['form'], $data, $instance['rating'])) . htmlspecialchars_decode($instance['markup']['post-end'], ENT_QUOTES) . "\n";
} else {
$content .= htmlspecialchars_decode($instance['markup']['post-start'], ENT_QUOTES) . "{$thumb}<a href=\"{$permalink}\" title=\"{$title}\" class=\"wpp-post-title\">{$title_sub}</a> {$excerpt}{$stats}{$rating}" . htmlspecialchars_decode($instance['markup']['post-end'], ENT_QUOTES) . "\n";
}
} else { // build regular layout
$content .= "<li>{$thumb}<a href=\"{$permalink}\" title=\"{$title}\" class=\"wpp-post-title\">{$title_sub}</a> {$excerpt}<span class=\"post-stats\">{$stats}</span>{$rating}</li>" . "\n";
}
# … and replace it with:
$data = array(
'title' => '<a href="'.$permalink.'">'.$title_sub.'</a>',
'summary' => $excerpt,
'stats' => $stats,
'img' => $thumb,
'id' => $p->id
);
array_push($posts_data, $data);
// PUTTING IT ALL TOGETHER
if ($instance['markup']['custom_html']) { // build custom layout
if ($instance['markup']['pattern']['active']) {
$content .= htmlspecialchars_decode($instance['markup']['post-start'], ENT_QUOTES) . htmlspecialchars_decode($this->format_content($instance['markup']['pattern']['form'], $data, $instance['rating'])) . htmlspecialchars_decode($instance['markup']['post-end'], ENT_QUOTES) . "\n";
} else {
$content .= htmlspecialchars_decode($instance['markup']['post-start'], ENT_QUOTES) . "{$thumb}<a href=\"{$permalink}\" class=\"wpp-post-title\">{$title_sub}</a> {$excerpt}{$stats}{$rating}" . htmlspecialchars_decode($instance['markup']['post-end'], ENT_QUOTES) . "\n";
}
} else { // build regular layout
$content .= "<li>{$thumb}<a href=\"{$permalink}\" class=\"wpp-post-title\">{$title_sub}</a> {$excerpt}<span class=\"post-stats\">{$stats}</span>{$rating}</li>" . "\n";
}
# Save changes.
Hector,
Thanks alot! That did the trick!
Great service and amazing work!
Regards