WordPress.org

Ready to get started?Download WordPress

Forums

Developer's Custom Fields
Implementation of Shortcodes? (2 posts)

  1. laptopmd
    Member
    Posted 2 years ago #

    Is there an easy way to allow shortcodes to be parsed within my Developer Custom Fields? A new WP site was developed for us and we're slowly taking over the reins of management and I appreciate your help!

    Thanks -
    Tim

    http://wordpress.org/extend/plugins/developers-custom-fields/

  2. Steve Taylor
    Member
    Plugin Author

    Posted 2 years ago #

    What type of field are you using? Is the plugin stripping the shortcodes? I think all you'd need to do would be either:

    echo apply_filters( 'the_content', slt_cf_field_value( 'my_field' ) );

    Or just:

    echo do_shortcode( slt_cf_field_value( 'my_field' ) );

    The former, I think, will parse the shortcodes as well as apply all other content filters. The latter would just parse shortcodes. Depends what you need.

    I could possibly include parameters for slt_cf_field_value to apply content filters to what's returned, but I generally try to leave things flexible for developers, so it's a low priority.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic