p tags in caption

xiaolingyi / 2014-02-07 21:56:02   

Hello,

  1. I want to put the title and the caption of the media on the same line on the permalink page.
  2. To do so, I'm trying to modify plugin.submedia.php, but I can't figure out how to remove  the <p></p> tags from around the caption. It seems that they are concatenated into the variable, but I don't know where.

Can someone help me ?

Here is one of the page I'm working on : xiaolingyi.com/dessins/paysages-paralleles/…

xiaolingyi / 2014-02-07 22:25:29   
  1. Finally I've found a solution by replacing 
  2. $s .= $page['media_caption'];
  3. by :
  4. $s .= preg_replace('#<p>(.+)</p>#i', '$1', $page['media_caption']);
Vaska A / 2014-02-08 03:09:21   

Hmmm...that's a tough one...and I think it might be the only way to deal with that. It's something to think about...

Why do you need to remove them? I'm curious...

This thread has been closed, thank you.