WordPress support from our community
Tagged: code, custom Theming, theming
This topic contains 0 replies, has 2 voices, and was last updated by Chad 7 years, 4 months ago.
Lately I have done a lot of Custom Theme for the company i work for and seem to have a problem with Extra paragraph
tags showing above and below my the_excerpt(); once render in the browser. See code example below:
*** note: List items a in a the loop ***
In template file:
< ?php the_excerpt(); ?>
Displaying in browser:
Allow multi-lingual buy…ages from your website.
Sorry that didn’t work out – I will take screenshots
Here are the screenshots of my code
Template file: http://flic.kr/p/aBvVAx
Browser Rending: http://flic.kr/p/aByA1A
Does this happen on EVERY post, or just certain ones?
Every place that i have a the_excerpt(); function on page or post.
Try this: http://wordpress.org/support/topic/removing-ltpgtltpgt-from-the_excerpt-output
No luck using that method… But
I just found this on the codex http://codex.wordpress.org/Function_Reference/wpautop
Place remove_filter(‘the_excerpt’, ‘wpautop’); in the functions file (this remove the unwanted paragraph tags)
Then wrap the_excerpt(); with p tags ( to place the excerpt into a paragraph tag)
This seems to work..
Thanks for your help
You must be logged in to reply to this topic.
WordPress NYC Community is proudly powered by WordPress and BuddyPress
Do you want to speak at our Meetup? >