View Full Version : Thumbnail images of videos not appearing in categories

07-04-2010, 12:20 AM
I am currently having a problem with the Socrates Theme not properly displaying the thumbnail images of videos in category posts.

I searched through current posts on this forum but couldn't find an answer to this.
(I am using Socrates version 2.03 with Wordpress 2.9.1)

Instead of displaying an image, it instead displays the html code.
This only happens in the category pages.
Within the individual posts and on the home page it all works fine.

Here is what I mean.
This link goes to a category page where it's not being displayed properly -


However, if you go to a specific post or to the home page, you will see that video images are displayed.

After reading another post in this forum I thought it might be a plugin issue, so I disabled all the plugins to see if that would make a difference.
It didn't fix it.
And I have tried re-installing Socrates but to no avail.

So I tried switching to a couple of different themes and this did fix it.
It was also working fine on the default theme before I installed Socrates.

So I have ruled out it being a plugin issue and therefore seems to be an issue that is specific to the Socrates Theme.

Can anyone offer help as to why this is happening?

07-04-2010, 08:50 AM
The reason that you are not seeing the images is that by default, unless a custom category.php file exists, the category view is programmed within WP to show only an excerpt of the post.

A standard excerpt does not show HTML tags or graphics.

You could change it to show the complete post but you may stand a chance of duplicate content penalties as this would effectively make each post appear twice on your site.

Another way that may solve your problem, as it has solved it on many of my blogs where I choose to show only excerpts of my posts, is to use a plugin that enables you to customize the excerpts shown.

Install the Custom Excerpts (http://wordpress.org/extend/plugins/custom-excerpts/) plugin and activate it.

Then go into the Custom Excepts settings page where you can choose the length of the excerpt (WP default is only 55 characters), and what HTML tags you will allow.

Add these tags into the 'Allow These HTML Tags:' first <p><br><a>, save your changes and then check your category view again.

You may have to experiment a bit on the allowed tags depending on your needs, but these work for me.

Let me know if this doesn't work and I'll try to think of something different.

07-05-2010, 09:14 AM
Thanks compusol.

I used the information you provided to work out how to get the images to display in the category pages again.

I installed the Custom Excerpts plugin and followed your directions.

In the settings area, I entered the html tags you recommended <p><br><a>.
This didn't work at first, until I added the extra <img> tag.

Then the images appeared again, as they did before Socrates.

However, the problem I have now is that I cannot figure out how to prevent the code of the embedded videos from displaying in categories.

It only shows up in the category posts and not on the home page or individual posts.
Each post finishes off with : addthis_url = 'http%3A%2F%2Fwww.....

And has a big long URL that doesn't look good at all.

Any idea how to stop this from happening?


07-05-2010, 10:22 AM
OK, getting there....

This doesn't look like a Socrates problem, more a conflict between AddThis and Wordpress. A quicksearch for addthis_url came up with thousands of sites all showing the same problem in category view!

According to AddThis, whose code it is, they had a problem with version 1.2 of their plugin, apparently 1.6 fixed this.

But Wordpress also admitted that version 2.9, which you have, also could have a problem with this code, which they fixed in the latest version.

Strangely enough WP 2.8 was fine, as is 3.0

So I guess that you check the plugin version number, if there's an update do that first and see if the problem goes.

Also update Wordpress to the latest version. I've updated a load of my blogs to WP 3.0 and haven't had any problems at all so guess it's OK :)

If that doesn't fix it let us know and we'll keep looking.

07-05-2010, 07:05 PM
The issue is now fixed.

It turns out that the problem was the AddThis plugin.
I upgraded to the 1.6 version as you recommended and straight away the issue was resolved.

Something so simple yet something I may not have figured out on my own.
Thanks again compusol for your advice.

I'm very grateful for this forum and people like you who offer their help.

I'm about to update to version 3.0 of wordpress, but I need to backup my blog first.
I have never done a backup before and when I did some research into it, it seems to be an extremely technical task.
Do you know of any easy ways to do a backup of a WP blog?

Dan Nickerson
07-05-2010, 07:19 PM
Login to Cpanel.

Click on Backup

Click on your Wordpress database name and save it..

That's the quickest way to backup as an extra precaution in case of problems.

07-05-2010, 07:39 PM
Thanks Dan,

I knew there must be an easy way.

But when I first looked into it via the wordpress.org site, I was given way too much info of detailed technical stuff about MySQL commands, phpMyAdmin, MySQL workbench, etc.

If it's so easy to do in Cpanel I'm not sure why this isn't listed on the WP site.

Anyway, all is good now and backup via cpanel has been taken care of.


07-06-2010, 05:14 AM
Glad to be able to help...

Now my contribution to easy ways of backing up WP.

I use yet another plugin, this time called WP-DBManager.

It takes a few minutes to set up, and depending on your host a quick file move using FTP, but once it's configured it is brilliant.

It allows you to automate your backups completely.

This plugin has saved me more than once when something has gone wrong.

I set mine up to automatically optimize and backup the database every three days.

The backup is saved to my server AND also emailed to a Gmail account that I have created specifically for my blog backups. Gmail are so generous with the space on their email accounts that I can save 3 to 4 months worth of backups from around 80 blogs with no problem.

In case of any problems simply retrieve the latest backup and start again :)

Dan Nickerson
07-06-2010, 09:36 AM
Phil, that is really smart... and would make a great post on WordpressError.com :)

07-06-2010, 10:10 AM
Thank you Dan,

Done :D