WordPress – Custom Post Type Loop

<?php
$loop = new WP_Query( array(
    'post_type' => 'CustomPostİsmi',
    'posts_per_page' => -1
  )
);
?>

<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>

  <!-- do stuff -->

<?php endwhile; wp_reset_query(); ?>

Önceki yazı
CSS ve JS Dosyalarından Versiyon Bilgisi Nasıl Kaldırılır?
Sonraki yazı
WordPress Mysql Veritabanı Yedek Alma ve Yeniden Yükleme

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Fill out this field
Fill out this field
Lütfen geçerli bir e-posta adresi yazın.
You need to agree with the terms to proceed

Yardıma mı ihtiyacınız var?

Bize projenden bahset!





    Benzer Yazılar