ThomasLarge
10/30/2017 - 4:41 PM

WP snippets (HTML, inside theme)

WP snippets (HTML, inside theme)

<?php bloginfo('template_directory'); ?> 
<?php echo do_shortcode('SHORTCODE HERE'); ?>
<?php query_posts(array( 
  'post_type' => 'deals',
  'posts_per_page' => 3
  ) ); 
?>

<?php while (have_posts()) : the_post(); ?>

<!-- Content here -->

<?php endwhile;?>

<?php wp_reset_query(); ?> // Always reset the loop
// This is where all of the snippets for Wordpress lives
<a class="<?php if (is_page('PAGE ID')) echo 'current_page_item'; ?>">LINK HERE</a>