WordPress.org

Ready to get started?Download WordPress

Forums

Custom Fields Creator
[resolved] Hey how do I get this working with qTransalte (2 posts)

  1. Johnwromine
    Member
    Posted 2 years ago #

    Hey how do I get this working with qTransalte? This is the big Question, this plug in is sweet!

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

  2. Johnwromine
    Member
    Posted 2 years ago #

    You have to do a little more work, but it works great!

    <?php
    $FieldsName = get_post_meta($post->ID, 'FieldsName', true); if(!empty($FieldsName))
    foreach( $FieldsName as $FieldName){
    if (qtrans_getLanguage() == 'en' ) {
    echo '<h5><a>' . $FieldName['question'] . '</a></h5>
    <div class="">' . $FieldName['anwser'] . '</div>';
    } elseif (							qtrans_getLanguage() == 'zh' ) {
    echo '<h5><a>' . $productfaq['question-zh'] . '</a></h5>
    <div class="">' . $productfaq['anwser-zh'] . '</div>';
    };
    };
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.