Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   "don't strip these tags" + excerpt issues (http://forum.bytesforall.com/showthread.php?t=13500)

SC801 Mar 25, 2011 07:42 PM

"don't strip these tags" + excerpt issues
 
So, I was recently fiddling with my "don't strip" section because I needed to have a video from a post show up in the excerpt on the home page. Now, something that I added has made the h4 heading show up as well. I don't want the heading format to show up in excerpts. But I've been deleting and checking to see which of the tags I entered made this happen, and can't figure it out.
these are the tags I have in the "don't strip" section now: <p><a><object><embed><img><div><em><br>

Can someone tell me what's going on?

(ps: using Atahualpa 3.6.4)

thanks!

juggledad Mar 26, 2011 04:44 AM

What's the URL so we can see the issue

SC801 Mar 26, 2011 06:36 PM

http://sierraclubcalifornia.org/

in the sticky post, the "1. ..." line is in h4 format, and just want it to be regular.

SC801 Mar 29, 2011 04:30 PM

Quote:

Originally Posted by juggledad (Post 61673)
What's the URL so we can see the issue

I posted the url, Juggledad. Can you help me?

lmilesw Mar 29, 2011 10:16 PM

Do you have anything in the excerpts box for that post. Any tags in that would show.

juggledad Mar 30, 2011 03:55 AM

what is the actual post - please copy and past it here using the HTML editor to copy it and then use the HTML icon above to paste it

also, export your settings and attach them to a reply

SC801 Mar 30, 2011 04:55 PM

Here is the text from the post (before the break)

HTML Code:

<h4>1. Fighting Global Warming, Generating Clean Energy and Stimulating Green Jobs</h4>

<p>Sierra Club California is working with the Legislature, Governor, Public Utilities Commission and Air Resources Board to speed our state’s transition to a green economy that sustains both jobs and our atmosphere, by:  <span style="color: #999999;">. . . →</span><!--more Read More--></p>

I don't know which settings you mean, or how to export them. But, like I said in my first post, when this issue appeared was when I added tags to the "don't strip these tags" section of the excerpt settings. What is in the "don't strip" section now is
HTML Code:

<p><a><object><embed><img><div><em><br>
Logically, since I didn't change anything else at the time, one of these added tags must have made the h4 heading tag become viable, right? Can you tell me what might have done that?

lmilesw Mar 30, 2011 09:29 PM

Do you have anything in the excerpts box for that post?

Any tags in that would show.

juggledad Mar 31, 2011 04:13 AM

at ato->Configure EXCERPTS
1) what do you have for 'Posts or excerpts on HOME page?'
2) what do you have for 'Show the first X posts on HOME page as full posts?'

SC801 Mar 31, 2011 12:51 PM

Quote:

Originally Posted by juggledad (Post 62071)
at ato->Configure EXCERPTS
1) what do you have for 'Posts or excerpts on HOME page?'
2) what do you have for 'Show the first X posts on HOME page as full posts?'

1) "Only Excerpts"
2) 0

SC801 Mar 31, 2011 12:55 PM

Quote:

Originally Posted by lmilesw (Post 62047)
Do you have anything in the excerpts box for that post?

Any tags in that would show.

No, I have nothing in that box.

But I do have a "read more" break in the post, and have not used that for any other post. Could that somehow make the heading tag show?

lmilesw Mar 31, 2011 02:06 PM

Yes it would. As a matter of fact Juggledad has been looking at that very issue. Currently if are set to show excerpts and you have a "readmore" the excerpt is ignored and all tags are rendered. We are testing "fix".

juggledad Mar 31, 2011 03:50 PM

1 Attachment(s)
try this, replace your current functions.php with this copy
Attachment 1259
and let me know the results

SC801 Mar 31, 2011 04:35 PM

I used the new functions.php file and that fixed the issue. Yay! :D

Just so I know - will the posts with <!--more--> breaks now adhere to the controls in the "Configure EXCERPTS" section?
They seem to, except for the placement of the "read more" link, which in all other posts is aligned with the last line of the excerpt, while in the <!--more--> break posts is in a line of its own. (you can compare my sticky post excerpt vs my other posts to see this http://sierraclubcalifornia.org/)

Thanks so much, lmilesw and juggledad!

lmilesw Mar 31, 2011 04:47 PM

In my testing if the readmore is "within" the excerpt it will show. If the excerpt is either manual or "before" the readmore the excerpt rules apply.

SC801 May 25, 2011 05:24 PM

The <!--more--> function now no longer works at all! When I put in a manual break, no "read more" link of any kind appears.
I tried doing <!--more Read more--> as well and that did not work.
I tried moving the tag around in the post, and that did not work.
It is well within the number of words to show in "Excerpt Length".
I read something about needing to have the tag on it's own, without <p></p> around it, but I can't make it do that because the HTML editor keeps automatically adding it. (Putting it within the paragraph tags of another paragraph does not work either

I am using the functions.php that I downloaded from you above. When I replace it with the original functions.php, and use <!--more Read more--> it works again.

I am using Atahualpa 3.6.4 and Wordpress 3.0.1

This is my html:
HTML Code:

<p><img class="alignnone" src="http://sierraclubcalifornia.org/muir_tree.PNG" alt="John Muir" width="542" height="351" /></p>
<p>2011 marks Sierra Club California's 25th year as a standalone legislative office. Please contribute your memories of the last 25 years to help us create a living history of our accomplishments.</p>
<p>Thank you!</p>
<p><!--more--></p>
<p>[si-contact-form form='4']</p>

As a reminder, this is the website: http://sierraclubcalifornia.org/
The first post is the one with the <!--more--> tag. As you can see, it breaks where I tell it to, before the form, but there is no link to read more.

juggledad May 25, 2011 06:26 PM

have you applies the 364 bugfix's? (new versions & updates forum)

SC801 May 25, 2011 07:21 PM

Quote:

Originally Posted by juggledad (Post 66357)
have you applies the 364 bugfix's? (new versions & updates forum)

I have installed the bugfixes 364-01 to 364-07. (Bugfixes 08 and 09 don't apply to my site)

Without the 07 bugfix, the read-more link shows up. With the 07 bug fix, it does not.


All times are GMT -6. The time now is 04:49 PM.

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