WordPress.org

Ready to get started?Download WordPress

Forums

Captions in custom fields (4 posts)

  1. romanczar
    Member
    Posted 4 years ago #

    Hi,

    I use CFT (Custom Field Template) for my custom posts and pages. I also have images with captions entered in the custom fields via this plugin.

    What do I need to do to output caption equally as to the_content(), i.e. have the gray box and tet below iamge? currenty it seems like the caption-shortcode is not replaced because of using the custom functions.

    Any idea?

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

  3. romanczar
    Member
    Posted 4 years ago #

    is it really that easy?

    If
    $custom_field_value
    contains my text with the captions code, I just put
    echo $do_shortcode($custom_field_value)
    ???

  4. alchymyth
    Forum Moderator
    Posted 4 years ago #

    i hope it is - that is what the docu says - i haven't used this myself (yet).

    what stops you from trying ?

Topic Closed

This topic has been closed to new replies.

About this Topic