Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Is there a known bug with featured image captions and excerpts? (http://forum.bytesforall.com/showthread.php?t=12201)

singledudetravel Jan 12, 2011 06:24 PM

Is there a known bug with featured image captions and excerpts?
 
I have found that when I switched to excerpt view if the featured image has a caption it displays incorrectly on the front page. Instead of not displaying at all on the front page, or displaying under the image the caption appears as the first line of the excerpt as if it's the first line of the article. I have actually had similar problems with other themes. Any way to fix this?

Thanks.

juggledad Jan 12, 2011 07:35 PM

What is your version of Atahualpa and WP?
What is the URL point to the issue?

singledudetravel Jan 13, 2011 05:27 AM

"What is your version of Atahualpa and WP?" The latest of both: Wordpress 3.0.4 and Atahualpa 3.6.1.

"What is the URL point to the issue?"

http://www.singledudetravel.com/ - on our latest post "Central America: “The Stepping-Stone”" (if it hasn't scrolled down by the time you read this) you will see what looks like the first line of the post "Costa Rican Chicas" but really that should simply be the featured image capture.

I have a similar (but worse problem) with WP Cover theme where sometimes it shows some of the [caption] code. That's why I thought it might be some kind of a known issue.

Thank you.

juggledad Jan 13, 2011 06:07 AM

How are you defining the thumbnail? as a featured image? or do you use a plugin?
please attach a copy of your settings (ato->export/import settings)

singledudetravel Jan 13, 2011 06:47 AM

Just using the normal built in functionality. There's no plugins involved that I know of. Here is the settings and screen shot of the image definition.


Here you go. Thanks.

singledudetravel Jan 14, 2011 09:29 AM

Here is a screen shot and the actual code involved:

HTML Code:

[caption id="attachment_183" align="alignleft" width="300" caption="Costa Rican Chicas"]<a href="http://www.singledudetravel.com/wp-content/uploads/2011/01/costa-rican-chicas.jpg"><img class="size-medium wp-image-183" title="Costa Rican Chicas" src="http://www.singledudetravel.com/wp-content/uploads/2011/01/costa-rican-chicas-300x241.jpg" alt="Costa Rican Chicas" width="300" height="241" /></a>[/caption]
Thanks.

singledudetravel Jan 27, 2011 11:04 AM

Is there any hope of fixing this some how?

Thanks.

juggledad Jan 27, 2011 12:54 PM

it's not a bug, the [caption..] is a short code, it gets expanded into HTML code. All html is stripped from a excerpt or ignored by default.

You need to look at your site when the issue appears. Then look at the the browsers 'view source' option to look at the code that was generated. Now find what the [caption] shortcode was changed to and add that HTML to the 'Do not exclude' section of the excerpt page.

singledudetravel Jan 27, 2011 12:57 PM

Quote:

Originally Posted by juggledad (Post 56055)
it's not a bug, the [caption..] is a short code, it gets expanded into HTML code. All html is stripped from a excerpt or ignored by default.

You need to look at your site when the issue appears. Then look at the the browsers 'view source' option to look at the code that was generated. Now find what the [caption] shortcode was changed to and add that HTML to the 'Do not exclude' section of the excerpt page.

great. makes perfect sense. I think i can handle that. thank you.

singledudetravel Jan 27, 2011 01:58 PM

Quote:

Originally Posted by juggledad (Post 56055)
it's not a bug, the [caption..] is a short code, it gets expanded into HTML code. All html is stripped from a excerpt or ignored by default.

You need to look at your site when the issue appears. Then look at the the browsers 'view source' option to look at the code that was generated. Now find what the [caption] shortcode was changed to and add that HTML to the 'Do not exclude' section of the excerpt page.

Is there a chance this just isn't fixable? The only thing I could find to add to exclude was the <div> tag but adding that to exclude created other worse formatting errors...

Thanks.

juggledad Jan 27, 2011 02:28 PM

Did you not see the <img> ??

singledudetravel Jan 27, 2011 02:36 PM

Quote:

Originally Posted by juggledad (Post 56072)
Did you not see the <img> ??

Yes (sorry didn't include in my post) but that one doesn't help either.

juggledad Jan 27, 2011 02:41 PM

what post is displaying the issue? The site looks fine.

singledudetravel Jan 27, 2011 02:47 PM

1 Attachment(s)
Quote:

Originally Posted by juggledad (Post 56076)
what post is displaying the issue? The site looks fine.

Well yes because I keep changing it back when it fails so the site doesn't look all screwed up. Attached screen shot is the result of adding <img>, <div> and <span> to exclusions. I tried them all individually and they each produce a different kind of mis formatting.

juggledad Jan 27, 2011 03:00 PM

I can not recreate your issue and if I can't see it on your site, there is not much I can do.

Document a sample, exactly how you add both the image and the featured image to the pos. It maybe that I'm doing it differently.

Hui-Neng Mar 19, 2011 09:35 PM

Hi,

I came across the same type of error on my site. Here's how I recreate it.

I had set the excerpt length to default of 55. When I use the wordpress post editor's "Insert More Tag" function, it will override the excerpt function in Atahualpa.

I fixed by forcing all excerpts to go to be the excerpted version in the else statement. I am not sure why (count($words) < $post_content_length) causes an error, but it does on my site. Once I commented out the below section, the bug went away.

Quote:

// Custom Excerpts

if (count($words) < $post_content_length) {
// use the teaser and its 'read more'
$bfa_ata_more_tag_final = str_replace("%post-title%", the_title('', '', false), $bfa_ata['more_tag']);
$text = the_content($bfa_ata_more_tag_final);
return $text;
} else {
I hope this helps!

:) Hui-Neng

cliffbird May 27, 2011 02:45 PM

I have been experiencing the same problem - when a post is displayed as a excerpt the image caption becomes the first line of the post.

I was able to fix this by simply filling in the excerpt field with a excerpt when creating a post rather then leaving the excerpt field blank.


All times are GMT -6. The time now is 01:06 PM.

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