WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
Showing HTML code in "after" text (2 posts)

  1. purrdesign
    Member
    Posted 3 years ago #

    Trying to show a snippet of html code after a specific field, basically to allow copy/paste of that specific code into the field itself. Yet when I add text to the 'after' option for the field, it applies the code as code rather than showing it.

    ie:
    [recipe_prep]
    type=textfield
    label=Recipe Prep Time
    size=20
    after=1 hour 30 min <span class="value-title" title="PT1H30M">

    I want the 'after' text to show in full - span classes an all - so that I can easily copy and paste that code later into the field itself. Ideas on how to accomplish this?

  2. travelvice
    Member
    Posted 3 years ago #

    I'm having the same problem. Would like to know if there's an escape character that I can use so that I can place this in there:

    after = wrap each in <div class="video-clip">

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic