2014-09-18 8 views
0

사용자 정의 게시 유형 estate_property, requirements, service를 작성했으며 그 중 property_category 및 property_action_category 분류를 공유했습니다. 하지만 요구 사항 게시 유형의 분류 값을 표시 할 수 없습니다.사용자 정의 분류 값 표시

이것은 내 템플릿 파일 코드 ..

$property_category   = get_the_term_list($post_id, 'property_category', '', ', ', ''); 

$property_action_category = get_the_term_list($post_id, 'property_action_category', '', ', ', 
''); 
<?php print $property_action_category; ?> 
     <?php if($property_action_category!='') { 
       print ' '.__('and','wpestate').' '; 
       } 
       print $property_category;?> 

나는 올바른 post_id를 무엇입니까. 그래서 아무도 어떤 생각을 가지고 ?? 이 템플릿 및 관련 택 소노 미에서 요구 사항 게시 유형에서 게시물을 표시하려고합니다. 이 같은

+0

하는? –

+0

나는 이해하지 못한다 ... –

답변

0

시도 뭔가 : 템플릿이, taxonomy.php이

<?php if (have_posts()) : while (have_posts()) : the_post();?> 
    <ul class="property-categories"> 
     <?php echo get_the_term_list(get_the_ID(), 'property_category', '<li>', ',</li><li>', '</li>'); ?> 
    </ul> 
    <ul class="property-actions"> 
     <?php echo get_the_term_list(get_the_ID(), 'property_action_category', '<li>', ',</li><li>', '</li>'); ?> 
    </ul> 
<?php endwhile; endif; ?> 
+0

나는 내 코드에서 이미 올바른 post_id.Suggest를 얻고있다 .. –

+0

그것의 작동하지 않는다 ... –

+0

당신은 그들이 택시라고 확신 하는가? 시도해 보셨습니까? DeFeNdog

관련 문제