Jump to content


Photo
- - - - -

HTML tags from excerpts


Best Answer James B , 09 April 2013 - 10:40 PM

Hi Batman

 

The <img> tag works fine on it's own, but once you add the caption it stops. I think this is because wp-caption is a shortcode, not a html tag. See - http://justintadlock...ns-in-wordpress

 

Just to check I've tried <wp-caption><caption> and a few others with no results.

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 batman

batman

    Bat Learning

  • Members

  • 2218 posts
  • LocationBuenos Aires, Argentina
  • Framework Version:DMS
  • Country: Country Flag

Posted 09 April 2013 - 09:38 PM

Hi all
There is some HTML tags from excerpts to an image with a "caption" to set it in Pagelines > Blog and Posts  > Allow Tags in Excerpt  > Allowed Tags ?, I don´t find it and <img> don´t work.
One image like this
Captura%2520de%2520pantalla%25202013-04-
 
Captura%2520de%2520pantalla%25202013-04-
 
The same for one youtube video 
 
Thank you very much in advance.


#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 09 April 2013 - 10:40 PM   Best Answer

Hi Batman

 

The <img> tag works fine on it's own, but once you add the caption it stops. I think this is because wp-caption is a shortcode, not a html tag. See -

Please Login or Register to see this Hidden Content

 

Just to check I've tried <wp-caption><caption> and a few others with no results.


  • batman likes this

#3 batman

batman

    Bat Learning

  • Members

  • 2218 posts
  • LocationBuenos Aires, Argentina
  • Framework Version:DMS
  • Country: Country Flag

Posted 09 April 2013 - 10:54 PM

Hi james B

 

You're absolutely right.
I'll think something different or I will have to delete the caption, not so serious.
Thanks for the reply.

 

;)