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

10.30.2008
| 6024 views |
  • submit to reddit
        // qtranslate in custom fields

<?php

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

Comments

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

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