Wsparcie » Motywy » Wyświetlanie wpisów z danej kategorii

  • Witam, czy w poniższym kodzie można dodać formułę tak aby wyświetlały się wpisy ale tylko z danej kategorii np.: taxonomy=property_category&tag_ID=4&post_type=property

    Fragment kodu:

    <div class="row property-list-area">
     <?php
     if( $property_query->found_posts <= 0 ) { ?>
      <p class='no-property'><?php esc_html_e('Nie znaleziono żadnych nieruchomości.','dreamvilla-multiple-property'); ?></p>
     <?php }
    
     $dreamvilla_property_list = $dreamvilla_options['dreamvilla_search_page_list_variation'];
    										
     if( $property_query ){
      while ($property_query->have_posts()) : $property_query->the_post();
    						
      switch($dreamvilla_property_list) {
    
      case 'grid1_Layout_Full_width': echo dreamvilla_mp_listing_full_grid_version1( $post->ID, 'without' );
      break;
    
     endwhile;
     
     } ?>											
    </div>
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
  • Temat ‘Wyświetlanie wpisów z danej kategorii’ jest zamknięty na nowe odpowiedzi.