0
votes
0answers
46 views

Strip <p> and <br> tags from a specific div

I don't know if its WordPress or TinyMCE but something always puts a crap load of paragraph and break tags everywhere which is incredibly annoying. I have a div with an ID of "hover" and I want to ...
2
votes
1answer
67 views

Remove tags from the kses filter

I know one can modify the kses filter to add new allowed tags to it, but is there a way to remove some of them? I can't find how. I need to disallow DIV tags. Any ideas? Thanks
1
vote
2answers
906 views

Stop wordpress from removing HTML attributes

I try to insert a post with html tag with class attribute, like this: <dl class="dl-horizontal">, but after saving the post, WP removes an attribute. How can I fix it? The only way I've found, ...
0
votes
2answers
1k views

Stop wordpress from adding html tags but not remove my own tags?

I've been trying to make wordpress stop adding html tags to my content but leave my own html tags alone? Tried remove_filter( 'the_content', 'wpautop' ); and installed PS Disable Auto Formatting ...
0
votes
2answers
714 views

Strip HTML Tags From Search Results

When I make a search, if there is an image title within a img tag, it's displayed in a very ugly fashion among the search results (the whole tag is displayed and the picture too). I found this script ...
0
votes
1answer
395 views

How can I wrap html around the output of the_time function?

My current code in functions.php: echo '<div class="post_date">'.the_time('d', '<div class="month">', '</div>').the_time('F', '<div class="day">', ...
0
votes
2answers
612 views

How to list Tags using get_tags in an html table?

Any suggestions on the simplest way to display tags using get_tags in an html table (4 columns across) ? Example: Tag 1 | Tag2 | Tag 3 | Tag 4 Tag 5 | Tag 6 | Tag 7 | Tag 8 I'm using the ...
-1
votes
1answer
943 views

get_page() unlike Loop returns the post content without html tags. How can I fix this?

get_page() unlike Loop returns the post content without html tags. I need tags. How can I fix this? I don't want to change wysiwyg editor, here is the bad solution ...