Skip to content

Instantly share code, notes, and snippets.

@amielucha
Created February 6, 2016 22:49
Show Gist options
  • Select an option

  • Save amielucha/19ab0984bb103ab07d81 to your computer and use it in GitHub Desktop.

Select an option

Save amielucha/19ab0984bb103ab07d81 to your computer and use it in GitHub Desktop.
WordPress Types plugin: retrieve fields in theme files and suppress filters (Jetpack compatibility fix)
<?php
// Retrieve a WYSIWYG Types plugin field
// and suppress third-party filters
// (useful when working with Jetpack Sharedaddy)
$field = types_render_field("fieldname", array("output"=>"html", "suppress_filters"=>"true"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment