本文整理汇总了PHP中the_repeater_field函数的典型用法代码示例。如果您正苦于以下问题:PHP the_repeater_field函数的具体用法?PHP the_repeater_field怎么用?PHP the_repeater_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了the_repeater_field函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_header
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header();
?>
<section id="page-header">
<?php
if (get_field('header_images')) {
?>
<section class="full-slider">
<div class="flexslider">
<ul class="slides">
<?php
while (the_repeater_field('header_images')) {
?>
<?php
$image = wp_get_attachment_image_src(get_sub_field('interior_header_image'), 'full');
?>
<li style="background:url(<?php
echo $image[0];
?>
) no-repeat;background-size:100%;">
<!-- <img src="<?php
echo $image[0];
?>
" alt="<?php
echo get_the_title(get_sub_field('interior_header_image'));
?>
开发者ID:spokehq,项目名称:vm-multisite,代码行数:31,代码来源:single-case-studies.php
示例2: the_flexible_field
function the_flexible_field($field_name, $post_id = false)
{
return the_repeater_field($field_name, $post_id);
}
开发者ID:niko-lgdcom,项目名称:wp-install,代码行数:4,代码来源:api.php
示例3: while
<?php
if (get_field('flexslider') && get_field('flexslider') . length > 0) {
?>
<div class="slider">
<ul class="slides">
<?php
while (the_repeater_field('flexslider')) {
?>
<li>
<?php
$image = wp_get_attachment_image_src(get_sub_field('image'), 'articlepageFlexslider');
?>
<img src="<?php
echo $image[0];
?>
" alt="<?php
echo get_the_title(get_sub_field('image'));
?>
">
<div class="content">
<?php
if (get_sub_field('desc')) {
?>
<h2><span><?php
the_sub_field('desc');
?>
</span></h2>
<?php
}
?>
开发者ID:Vinnovera,项目名称:scibase,代码行数:31,代码来源:articlepageFlexslider.php
示例4: the_field
<div class="gray-divide"></div>
<!--
<h2 class="adelle display-inline float-left"><?php
the_field('main_blue_title');
?>
</h2>
<?php
if (get_field('tag_line_words')) {
?>
<section id="tagline">
<h2 class="adelle display-inline float-left">If you can dream it, we can </h2>
<article class="display-inline float-left verb-container">
<?php
while (the_repeater_field('tag_line_words')) {
?>
<h2 class="adelle verb blue"><?php
the_sub_field('word');
?>
</h2>
<?php
}
?>
</article>
<h2 class="display-inline float-left clear-none">it.<sup>™</sup></h2>
</section>
<?php
}
?>
<p class="clear-both home-text"><?php
开发者ID:spokehq,项目名称:vm-multisite,代码行数:30,代码来源:front-page.php
示例5: if
<?php if(get_field('accordian')): ?>
<div class="accordianContainer">
<?php while(the_repeater_field('accordian')): ?>
<div class="accordianItem">
<div class="accordianHeading">
<h3><?php the_sub_field('accordian_heading'); ?></h3>
</div>
<div class="accordianContent">
<?php the_sub_field('accordian_wysiwyg'); ?>
</div>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
开发者ID:ryan2407,项目名称:Vision,代码行数:17,代码来源:accordian.php
示例6: array
</style>
<?php
$event_ary = array();
$args = array('post_type' => 'calendar_event', 'posts_per_page' => 100);
$myposts = get_posts($args);
foreach ($myposts as $post) {
setup_postdata($post);
$date1 = get_field('start_date', $postID);
$startdate = date("m-d-y", strtotime($date1));
$date2 = get_field('end_date', $postID);
$enddate = date("m-d-y", strtotime($date2));
$dstart = date("F j", strtotime($date1));
$dend = date("F j", strtotime($date2));
if (get_field('event_day')) {
while (the_repeater_field('event_day')) {
$active = get_sub_field('event_date');
$formatted = date("m-d-Y", strtotime($active));
$event_ary[$formatted][] = array("e-title" => "", "e-title-2" => get_field('title'), "e-show-title" => get_field('sub_title'), "e-time" => "", "e-date" => "", "e-details" => "", "e-show-date" => $dstart . " - " . $dend, "e-gallery-hours" => get_field('gallery_hours'));
}
}
}
$today = $_SERVER['REQUEST_TIME'];
if ($_GET["month"] == "") {
$themonth = date("n", $today);
} else {
$themonth = $_GET['month'];
}
if ($_GET["cyear"] == "") {
$theyear = date("Y", $today);
} else {
开发者ID:kivabitar,项目名称:lumberroom,代码行数:31,代码来源:calendar.php
示例7: trim
echo trim($output);
}
?>
">
<a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
">
<article class="pic">
<div class="border-pic">
<div>
<?php
$images = the_repeater_field('header_images');
$thumb = wp_get_attachment_image_src(get_sub_field('interior_header_image'), 'large');
?>
<img src="<?php
echo $thumb[0];
?>
" alt="<?php
the_title();
?>
">
</div>
</div>
</article>
开发者ID:spokehq,项目名称:vm-multisite,代码行数:31,代码来源:archive-case-studies-bk.php
示例8: randomizeContent
?>
</div>
</div>
</div>
<script type="text/javascript">
randomizeContent("slide");
</script>
<?php
} else {
if (get_field('header_image', 'options')) {
?>
<div class="main_img">
<div id="slides">
<div class="slides_container">
<?php
while (the_repeater_field('header_image', 'options')) {
?>
<div class="slide">
<img src="<?php
the_sub_field('image');
?>
" alt="<?php
the_sub_field('title');
?>
" />
<div class="caption" style="bottom:0">
<h2><?php
the_sub_field('title');
?>
</h2>
<p><?php
开发者ID:rberrill,项目名称:AoK,代码行数:31,代码来源:header.php
示例9: while
<?php
if (get_field('one-third')) {
?>
<div class="g one-whole">
<div class="gw">
<?php
while (the_repeater_field('one-third')) {
?>
<article class="puff small g one-third">
<?php
if (get_sub_field('image')) {
?>
<div class="box">
<a href="<?php
the_sub_field('link_url');
?>
" class="overlay">
<?php
$image = wp_get_attachment_image_src(get_sub_field('image'), 'startpageThirdPuff');
?>
<img src="<?php
echo $image[0];
?>
" alt="<?php
echo get_the_title(get_sub_field('image'));
?>
">
<?php
if (get_sub_field('title')) {
开发者ID:Vinnovera,项目名称:scibase,代码行数:31,代码来源:startpage33Cols.php
示例10: while
?>
</p>
<a href="/people/" class="roundel">Find out<br>More ></a>
</aside>
<div class="clear"></div>
</section>
</section>
<section id="team">
<a class="anchor" id="the-team"></a>
<section class="container">
<h2>Meet the team</h2>
<?php
if (get_field('team_members')) {
?>
<?php
while (the_repeater_field('team_members')) {
?>
<aside class="col-1-of-3">
<?php
if (get_sub_field('linkedin_url')) {
?>
<a href="<?php
the_sub_field('linkedin_url');
?>
" target="_blank">
<img src="<?php
the_sub_field('picture');
?>
" alt="<?php
the_sub_field('name');
?>
开发者ID:BennyHudson,项目名称:myww,代码行数:31,代码来源:template-landing.php
示例11: the_title
the_title();
}
?>
"></a></li>
<?php
}
?>
</ul>
</section>
<div class="overlay-wrap" id="gallery-content">
<div class="overlay-container">
<div class="overlay-content">
<a href="#" class="overlay-close"><i class="fa fa-times-circle fa-2x"></i></a>
<ul id="gallery-images">
<?php
while (the_repeater_field('gallery')) {
?>
<?php
$full = wp_get_attachment_image_src(get_sub_field('image'), 'large');
?>
<li><img src="<?php
echo $full[0];
?>
" alt="<?php
if (get_sub_field('title')) {
the_sub_field('title');
} else {
the_title();
}
?>
" title="<?php
开发者ID:BennyHudson,项目名称:nicola-clarke,代码行数:31,代码来源:single.php
示例12: the_title
<li><a href="/place">Place</a></li><li><strong style="color:#fff"><?php
echo the_title();
?>
</strong></li>
</ul>
<ul id="controls">
</ul>
</div> <div id="pages"> <div id="chapter">
<?php
if (get_field('furnishing_page')) {
$i = 0;
while (the_repeater_field('furnishing_page')) {
$i++;
if ($i == 1) {
$bgimg = get_sub_field('f_background_image');
?>
<?php
}
?>
<div id="page-<?php
echo $i;
?>
" class="page" data-bg-image="<?php
echo get_sub_field('f_background_image');
?>
"> <div id="two-column-container" class="gallery">
开发者ID:kivabitar,项目名称:lumberroom,代码行数:31,代码来源:furnishing.php
示例13: short_opis
?>
</div>
<div class="text">
<?php echo short_opis(); ?>
</div>
<ul class="dm_gallery">
<?php
$counter = 0;
$id = get_the_ID();
$rel = ' rel="lightbox['.$id.']" ';
while(the_repeater_field('zdjecia')){
$counter++;
$thumb = get_sub_field('zdjecie_galerii');
$link = $thumb;
$thumb = site_url().'/resize/138x140x1/r/'. dm_relative($thumb);
$opis = get_sub_field('opis-zdjecia');
?>
<li><a class="gallery-item" href="<?= $link; ?>" <?= $rel; echo ' title="'.$opis.'"';?> >
<img src="<?= $thumb; ?>" alt="<?= $opis; ?>" />
</a></li>
开发者ID:skonina,项目名称:teatrbaza,代码行数:29,代码来源:single-galeria-zdjec.php
示例14: while
"
sizes="250px"
alt="<?php
echo $thumbs['alt'];
?>
"
title="<?php
echo $thumbs['title'];
?>
"
>
</label>
</li>
<?php
$i = 1;
while (the_repeater_field('galeria_de_imagenes')) {
$thumb = get_sub_field('gallery_image');
$slide_src = wp_get_attachment_image_url($thumb['id'], 'full-size');
$slides_srcset = wp_get_attachment_image_srcset($thumb['id'], 'full-size');
?>
<li class="slider__extra-images--thumb">
<label for="slider__image--<?php
echo $i;
?>
" class="slider__extra-images--thumbnail" id="img-dot-<?php
echo $i;
?>
">
<img
src="<?php
echo esc_url($img_src);
开发者ID:adriamarcet,项目名称:therockery-theme,代码行数:31,代码来源:slider.php
示例15: get_field
$header_slider = get_field('header_slider');
if ($header_slider) {
?>
<div id="carousel-example-generic" class="carousel slide hidden-xs" data-ride="carousel">
<div class="carousel-inner" role="listbox" align="center">
<?php
foreach ($header_slider as $post) {
?>
<?php
setup_postdata($post);
$i = 0;
?>
<?php
while (the_repeater_field('imagenes', get_the_ID())) {
?>
<?php
$url = get_sub_field('url');
?>
<div class="item <?php
echo $i == 0 ? 'active' : '';
?>
">
<?php
if ($url[0] != "") {
?>
<a href="<?php
echo get_permalink($url[0]);
?>
开发者ID:eliascantoral,项目名称:guaflixv2,代码行数:31,代码来源:home.php
示例16: while
<table>
<?php
while (the_repeater_field('kit_list')) {
?>
<tr>
<th><?php
the_sub_field('type');
?>
</th>
<?php
if (get_sub_field('items')) {
?>
<td>
<ul>
<?php
while (the_repeater_field('items')) {
?>
<li><?php
the_sub_field('item_name');
?>
</li>
<?php
}
?>
</ul>
</td>
<?php
}
?>
</tr>
<?php
开发者ID:BennyHudson,项目名称:dan-zack,代码行数:31,代码来源:header.php
示例17: while
<?php
if (get_field('imageGallery')) {
while (the_repeater_field('imageGallery')) {
?>
<section class="g one-third press">
<div class="box">
<?php
if (get_sub_field('title')) {
?>
<h2><?php
the_sub_field('title');
?>
</h2>
<?php
}
?>
<?php
if (get_sub_field('image')) {
?>
<?php
$image = wp_get_attachment_image_src(get_sub_field('image'), 'imageGallery');
?>
<?php
$fullimage = wp_get_attachment_image_src(get_sub_field('image'), 'full');
?>
<img src="<?php
echo $image[0];
?>
" alt="<?php
开发者ID:Vinnovera,项目名称:scibase,代码行数:31,代码来源:imageGallery.php
示例18: while
<li><a href="/place">Place</a></li><li class="crumbit"><a href="/collections">collection</a></li><li><strong><?php
echo $theArist;
?>
</strong></li>
</ul>
<ul id="controls">
</ul>
</div> <div id="pages"> <div id="chapter">
<?php
if (get_field('collection_images')) {
$i = 0;
while (the_repeater_field('collection_images')) {
$i++;
?>
<div id="page-<?php
echo $i;
?>
" class="page">
<div id="two-column-container" class="gallery">
<a href="<?php
echo get_sub_field('collection_image');
?>
"><img src="<?php
echo get_sub_field('collection_image');
?>
" alt="" style="max-height:100%;max-width:100%;"/></a>
</div>
开发者ID:kivabitar,项目名称:lumberroom,代码行数:31,代码来源:single-collection.php
示例19: get_field
"><?php
echo get_field('breadcrumb_parent_title');
?>
> </a></li><li> <strong><?php
echo get_field('title');
?>
</strong></li>
</ul>
<ul id="controls">
</ul>
</div>
<div id="pages" class="mobile-scroll"> <div id="chapter">
<?php
if (get_field('pages')) {
$i = 0;
while (the_repeater_field('pages')) {
$i++;
?>
<div id="page-<?php
echo $i;
?>
" class="page show"> <div id="side-container" class="gallery">
</div> <div id="main-container" class="text">
<?php
if ($i == 1) {
?>
<h2 class="calendar-title"><?php
echo get_field('title');
?>
</h2>
开发者ID:kivabitar,项目名称:lumberroom,代码行数:31,代码来源:single-qanda.php
示例20: if
return $string;
}
?>
<?php if (have_posts()) : the_post();?>
<div class="breadcrumbs_new"><?php breadcrumbs(); ?></div>
<div class="text">
<p><?php echo short_opis(); ?></p>
<?php
while(the_repeater_field('linki_do_filmow')){
$link = get_sub_field('link');
echo convert_videos($link);
echo '<div style="display: block; height: 30px;"></div>';
}
?>
</div>
<?php else : ?>
<h2>---</h2>
<?php endif; ?>
</div>
开发者ID:skonina,项目名称:teatrbaza,代码行数:31,代码来源:single-galeria-wideo.php
注:本文中的the_repeater_field函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论