Skip to:
Content
Pages
Categories
Search
Top
Bottom

HTML In Custom Fields

  • Profile photo of alanchrishughes
    alanchrishughes
    Participant

    @alanchrishughes

    This isn’t a Buddypress specific question but I know there are some really smart dudes on here that would know the answer. I setup up a special custom field box for people to past Vimeo video code, which uses an iframe. The problem is this textarea then tries to render the iframe/html after the post has been saved, instead of showing the raw html. Is there a way to stop the html from rendering like how WordPress’s html post tab does? Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Profile photo of modemlooper
    modemlooper
    Moderator

    @modemlooper

    Try using `

    ` or `` wrapped around HTML
    Profile photo of alanchrishughes
    alanchrishughes
    Participant

    @alanchrishughes

    Thanks man, that kind of works, it cuts off the code and only shows

    <iframe src=

    Profile photo of modemlooper
    modemlooper
    Moderator

    @modemlooper

    `` your stuff in the middle ``

    Profile photo of alanchrishughes
    alanchrishughes
    Participant

    @alanchrishughes

    That is how I set it up. The

     tag cuts it off, using the  tag cuts it off but also shows the closing /> outside of the input box.
    Profile photo of alanchrishughes
    alanchrishughes
    Participant

    @alanchrishughes

    haha, what I wrote was the pre tag cuts it off, and the code tag cuts it off and shows the extra code awkwardly outside of the input box

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HTML In Custom Fields’ is closed to new replies.
Skip to toolbar