Skip to content

Instantly share code, notes, and snippets.

@isaacdanielanderson
Forked from kevinwhoffman/loop-custom.php
Created September 8, 2018 20:23

Revisions

  1. @kevinwhoffman kevinwhoffman revised this gist Jun 30, 2015. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions loop-custom.php
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,13 @@
    <?php
    $loop = new WP_Query( array(
    'post_type' => 'Property',
    'posts_per_page' => -1
    )
    );
    $loop = new WP_Query( array(
    'post_type' => 'Property',
    'posts_per_page' => -1
    )
    );
    ?>

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

    <!-- do stuff -->
    <!-- do stuff -->

    <?php endwhile; wp_reset_query(); ?>
  2. @kevinwhoffman kevinwhoffman revised this gist Nov 11, 2014. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions template.php
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    <?php
    /* Template Name: Template Name */
    ?>
  3. @kevinwhoffman kevinwhoffman revised this gist Nov 11, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions template.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    <?php
    /* Template Name: Template Name */
    ?>
  4. @kevinwhoffman kevinwhoffman created this gist Nov 11, 2014.
    13 changes: 13 additions & 0 deletions loop-custom.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <?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(); ?>