wordpress - functions.php - preg_replace - <div<-tags

kjoe05

New Member
i have a problem with the posts of wordpress. Using the code embed function of an external blog publishing automatically on wordpress, the html code messes up my styling.I do have the following code:\[code\] <div class="entry-content"> <div style="width:450px;margin:0 auto"> <div style="position:relative;"> <a target="_blank" href="http://stackoverflow.com/questions/13841883/DIFFERENT VARIABLES"> <img width="???" alt="DIFFERENT VARIABLES" src="http://stackoverflow.com/questions/13841883/DIFFERENT VARIABLES" title="DIFFERENT VARIABLES" height="???" /> </a> </div> </div> <p><br/> <div style="text-align:center"><small>SEVERAL <a>-TAGS</small></div> </div>\[/code\]The goal is to get rid of the second \[code\]<div>\[/code\] with the style attributes and to get rid of the \[code\]<p><br/>\[/code\]. The best way would be a function for the function.php cause I do have lo of posts.Can anyone help me please? I'm good enough to do some html coding, but this is far beyond my skills.
 
Back
Top