I'm writing a plugin for a wordpress site using a page template using WP Types plugin.

My plugin adds a shortcode tag.

Shortcode tags inside 'the_content' get processed without problem.

But this page template echoes types_render_field(...) WP Types function which gets and returns content containing shortcode tags retrieved from the database using get_post_custom($postid) wordpress core function call.

I want to process these shortcode tags without modifying the template or WP Types plugin, just using my plugin code.

Is that possible?

  • If this is the plugin, it is commercial. The code is not easy to come by. Ask their support about this.
    – s_ha_dum
    Dec 29, 2013 at 15:45
  • I don't know if it's commercial or not (it's not my deployment), but the code is available for download in wordpress.org: downloads.wordpress.org/plugin/types.1.5.3.zip
    – NotGaeL
    Dec 29, 2013 at 18:28
  • What is the code for types_render_field?
    – s_ha_dum
    Dec 29, 2013 at 18:42
  • it's on file types/embedded/frontend.php
    – NotGaeL
    Dec 29, 2013 at 19:40

1 Answer 1


I will never understand the point of these wildly complicated "helper" wrapper/plugins... but that aside...

The plugin provides a lot of filters that might help you out. I think that the types_view filter might be what you want. Something like this is a plugin file or your theme functions.php might do it:


I do not use that plugin, have never used that plugin, and I am guessing-- a lot-- but I hope that helps.

  • I still had to unescape and reformat the arguments passed to the shortcode handler function, (I got something like array([0]=>'\\'fieldname\\'='\\'Title\\', ...) instead of array('fieldname'=>'Title', ...))) but it worked. Thank you so much: WP Types is massive and way too complex (I also don't understand where's the benefit: you can probably achieve more or less the same functionality on this site without using it) and this problem was driving me crazy ^^'
    – NotGaeL
    Dec 30, 2013 at 8:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.