admin管理员组文章数量:1318569
I have a html/php code as shown below which displays list of links coming from wordpress.
html/php:
<header class="entry-header container grid-flex">
<div class="flex-item -sm-50">
<button>Thumbs</button>
</div>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
echo "<pre>"; print_r($all_list); echo "</pre>"; // Line A
echo "<hr>";
echo "Active List<br>";
echo "<pre>"; print_r($active_list); echo "</pre>"; // Line B
echo "<hr>";
echo "Passive List<br>";
echo "<pre>"; print_r($passive_list); echo "</pre>"; // Line C
// Load the thumbnails view
get_template_part( 'parts/content-list-thumbs' ); // Line D
?>
</div>
Line A displays following list of links:
/
/
/
Line B displays following links:
/
Line C displays following links:
/
/
The code inside content-list-thumbs file coming from Line D is:
html/js code:
<ul id="list-thumbs">
<?php
while (have_posts()) : the_post();
?>
<li class="list-grid__thumb list-grid__item">
<a class="list-grid__img-link" href="<?php echo esc_url(get_the_permalink()); ?>">
<?php if (has_post_thumbnail()) { ?>
<?php
$image_id = get_post_thumbnail_id(get_the_ID());
CPAC\Images\the_img_fit_figure($image_id, 'list-grid__image', '(min-width: 650px) 50vw, 100vw', false); ?>
<?php } ?>
</a>
</li>
<?php endwhile; ?>
</ul>
The above html/js code displays list of images associated with Line A.
Problem Statement:
What I want to achieve from the html/js code above is I want to display list of images associated with Line B and Line C with a separator.
Line B images
Line C images
本文标签: separate list of programs in htmljavascript coming from php
版权声明:本文标题:separate list of programs in htmljavascript coming from php 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742047575a2417879.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论