고급 사용자 정의 필드를 사용하고 있습니다. Genre 맞춤 필드의 값 (예 : 스릴러, 서스펜스 등)을 연결하여 사용자가 값 중 하나를 클릭하면 필터링 된 게시물 목록을 가져 오도록합니다. 예를 들면. 스릴러를 클릭하면 스릴러 카테고리의 모든 게시물을 가져옵니다.고급 사용자 정의 필드의 장르 링크
지금까지 다음과 같이 ACF는 내 코드 :
<!-- Entry Content Start -->
<article <?php post_class('entry clearfix fitvids'); ?>>
<div class="inner-post">
<div class="cover">
<div class="post-image">
<?php
if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail();
}
?>
</div>
<div class="custom-fields">
<?php the_meta(); ?>
<div class="ad">
<img src="http://lorempixel.com/160/600" alt="">
</div>
</div>
</div>
<div class="the-content">
<?php the_content(); // This is your main post content output ?>
</div>
</div><!-- /inner-post -->
</article><!-- /entry -->
나는 해결책이 거기에있다 바랍니다. 미리 감사드립니다.
미안하지만이 점을 이해하지 못합니다. PHP에 대한 지식이 거의 없습니다. ( – TBI
[guide] (http://www.advancedcustomfields.com/resources/how-to/filter-posts-by-custom-fields/)를 따르십시오. –
나는 시도 할 것이다. 고마워 :) – TBI