Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   [SOLVED] Image caption: a bug in 3.4.2? (http://forum.bytesforall.com/showthread.php?t=3477)

deltahouse Sep 15, 2009 03:26 PM

[SOLVED] Image caption: a bug in 3.4.2?
 
Hi all
here is a little problem I see in my 3.4.2 version. It's about the caption (or legend, explanatory heading, descriptive title.. i'm not sure of the traslation, sorry) you put under an image in a post.
Well, if you set in the options "Posts or excerpts on HOME page?" to Only excerpts and you set also in "Show the first X posts on HOME page as full posts?" a number as 2 (or 3 or 4...), it happens that when a post goes to position 3 in which it becomes from a full post to an excerpt, you don't see nomore the image, but his caption still appears as a single line between the byline and the body. Well, it's a problem.
This problem happens also when you have a page with all excerpts...
I had the 3.2 version it did not happen...

Is there a solution?
I do hope it's only a setting error i made...
Thanx in advance...

juggledad Sep 15, 2009 05:51 PM

The caption you assign to an image is not part of the image, it is part of the post, just formated under the image.

When you want an excerpt to be displayed, Atahualpa takes the first XX characters (see ATO->Configure EXCERPTS->Excerpt length - default is 55) to display as the excerpt

If you have a photo first and then a bunch of text, the caption is part of the first XX charecters and it is displayed. If you have a paragraph over the XX length, then the photo, the caption will not be displayed.

deltahouse Sep 16, 2009 02:12 AM

First of all, thank you very much for your answer. You have been very kind, as usual.
But, in this case, I suppose there is really a bug. For two obvious reasons. Too much obvious:

1 - I run the same site on two different servers with two different www address. On the site with 3.2 running, there is no problem: in the "excerpt mode" there is not that single line with the only caption between the byline an the body. On the 3.4.2 one there is.

2 - The second reasion is more obvious. If it was as you suppose ("If you have a photo first and then a bunch of text, the caption is part of the first XX charecters and it is displayed"), this would mean you can't definitely use captions in the most common position of a photo in a post (up on the left or up on the right), because you always would have this error. In other words, you can't use captions. It's impossible that who wrote Atahualpa code wanted this.

It would be vey interesting to read what Atahualpa author thinks about....
Where can I show him this problem?

Are you agree, juggledad?

juggledad Sep 16, 2009 06:53 AM

Well this has been an incrimental change.
In 3.2 it does work the way you say, the caption does not show up
in 3.3.x the photo shows up with the caption
in 3.4.x just the caption shows up (due to another problem, Flynn stopped using the WP excerpt code and wrote his own)

so here is an interesting question. If a image is part of the begining of a post and is within the range of the excerpt, should it be displayed? - I'll bet some people will say yes and some will say no.

What is your opinion?

deltahouse Sep 16, 2009 08:06 AM

Well, if in the excerpt we have the image with the caption and so this avoids the error we are talking about...this can be the right solution...
This is definitey better than the error we have now.

However, i should prefer the image in the excerpt...(just as it often happens in the news websites).

I do hope this bug will be fixed very soon - this is the real point...

juggledad Sep 17, 2009 07:44 AM

Here is what you do

Go to 'ATO->Configure EXCERPTS->Don't strip these tags' and add '<img><p><div><a>' and you should see the image.

In 3.4 there were some changes because of the way WP strips the HTML tags when it process the excerpt, so Flynn wrote a version. You can control what HTML tags don't get strip. Give it a try

deltahouse Sep 17, 2009 03:23 PM

Done
It works.
Thank you so much...(hoping in the next Atahualpa upgrade) :)


All times are GMT -6. The time now is 09:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.