2016-12-05 19 views
0

我在教自己的Wordpress,并得到了很多。我有最后一部分来建立。我不太清楚如何建立它。我使用bootstrap作为框架,我希望客户端能够根据需要添加多个卡。如何在Wordpress中使用卡片构建内容区域?

我想我可以使用高级自定义字段。但我没有看到一个选项,我可以有一个重复块,将保留在两列。

唉唉我不能发布我的形象=(

基本上我需要知道如何建立与在WordPress中两列卡内容部分。它不是全球性的。

任何帮助或指向正确的方向将是伟大的! 非常感谢!

+0

尝试使用先进的自定义字段PRO,或单独购买的Repeater扩展。 – Amin

回答

0

ACF Pro有一个中继器字段,如文中所述:https://www.advancedcustomfields.com/resources/repeater/。你应该考虑购买专业版或只有这个扩展名 - d为您节省大量的开发工作时间。

这是从它采取了一些示例代码:

<?php 
// check if the repeater field has rows of data 
if(have_rows('repeater_field_name')): 
    // loop through the rows of data 
    while (have_rows('repeater_field_name')) : the_row(); 
     // display a sub field value 
     the_sub_field('sub_field_name'); 
    endwhile; 
else : 
    // no rows found 
endif;  
?>