SHARE
TWEET

Untitled

a guest Jun 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3.     <div id="primary" class="content-area">
  4.         <main id="main" class="site-main" role="main">
  5.  
  6.             <?php
  7.             if (have_posts()) : while (have_posts()) : the_post();
  8.  
  9.                 $custom_arr = array(1,2,3,4);
  10.                 if (in_array(get_the_ID(), $custom_arr)) {
  11.                     get_template_part( 'parts/loop', 'single-custom' );
  12.                 }
  13.                 else {
  14.                    get_template_part( 'parts/loop', 'single' );
  15.                 }
  16.  
  17.             endwhile; else :
  18.  
  19.                 get_template_part( 'parts/content', 'missing' );
  20.  
  21.             endif;
  22.             ?>
  23.         </main><!-- #main -->
  24.     </div><!-- #primary -->
  25.  
  26. <?php get_footer(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top