我有 php 代码(ACF Pro 插件代码)。如何将此代码插入到我的 Visual Composer 中?很长一段时间都找不到解决方案,但现在这对我来说很重要。
<?php if( have_rows('add_a_new_table') ): ?>
<?php
while( have_rows('add_a_new_table') ):
the_row();
// vars
$t_title = get_sub_field('t_title');
$t_pricing = get_sub_field('t_pricing');
$t_emails_number = get_sub_field('t_emails_number');
?>
<div class="col-sm-12 col-sm-4 text-center">
<div class="courses-column">
<div class="courses-column-inner">
<h3><?php echo $t_title; ?></h3>
<p style="font-size: 24px;">
<?php echo $t_pricing; ?>
</p>
<br>
<p style="font-size: 16px;">
<?php echo $t_emails_number; ?>
</p>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
由于 if 和 while 条件,我无法通过简码实现它。Row HTML 和 Row JS 对我来说也没用。