Kategoriler
Wordpress

WordPress – Custom Post Type Loop

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

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

  <!-- do stuff -->

<?php endwhile; wp_reset_query(); ?>

Kaynak:https://gist.github.com/kevinwhoffman/97c0f6c4be117fb389e9

Spreading Love by Sharing