Jump to content


Photo
- - - - -

Link ref in media caption


  • Please log in to reply
2 replies to this topic

#1 jenny20k

jenny20k

    Super Member

  • Members
  • PipPipPipPip
  • 100 posts

Posted 14 April 2011 - 07:48 PM

Hi I would like to credit the photographer by adding a link in the caption of each photograph on my site. However, adding a normal link ref doesn't work as it shows all the html in the caption. Is there any way around this? Thanks

#2 timlinson

timlinson

    Advocate

  • Members
  • PipPipPipPipPip
  • 1032 posts

Posted 15 April 2011 - 03:37 AM

There might be plugins to do this automatically, but barring that, you can change the caption value manually in the html editor. On the last field where it says caption="creditlink" change it to single quotes caption='creditlink' as such:

`[caption id="attachment_423" class="wp-caption alignleft" style="width: 590px" caption='

Please Login or Register to see this Hidden Content

'] .......`

#3 jenny20k

jenny20k

    Super Member

  • Members
  • PipPipPipPip
  • 100 posts

Posted 15 April 2011 - 08:01 AM

Thank you!