Quantcast
Viewing all articles
Browse latest Browse all 20145

Reply To: wpv-if with repeated fields and taxonomies

Hi Adriano,

First of all, sorry for taking long time to reply…

When I tried the [wpv-for-each] syntax as you explained the code is now displayed instead of the values (i.e. "[types field="artist" class="" style=""][/types]" instead of the artist name as entered). Maybe I should explain that I'm using this code in a bilingual template view like this:

[renderqtinsidevt]
<!--:en-->
<table>
    <tbody>
              [wpv-for-each field="wpcf-test-upload-repeater"]
                     [wpv-if artist="wpcf-artist" evaluate="!empty($artist)"]
            <tr>
                <td>Artist</td>
                <td>[types field="artist" class="" style=""][/types]</td>
            </tr>
        [/wpv-if]
              [/wpv-for-each]
    </tbody>
</table>
<!--:-->
<!--:ar-->
......
<!--:-->
[/renderqtinsidevt]

While the [renderqtinsidevt] function is defined in functions.php as follows

add_shortcode( 'renderqtinsidevt', 'renderqtinsidevt_func' );
function renderqtinsidevt_func( $atts, $cont = null ){
	return apply_filters('the_content', __($cont));
}

How to make the code display the values?


Viewing all articles
Browse latest Browse all 20145

Trending Articles