DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Qtranslate In Custom Fields

  • submit to reddit
        // qtranslate in custom fields


  $mykey_values = get_post_custom_values('Name of the custom field');
  foreach ( $mykey_values as $key => $value ) {
  echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($value);


Snippets Manager replied on Tue, 2011/12/06 - 5:32am

Where do I use this snippet in the qtranslate plugin.. theme functions? Thanks a million.