available then displays it all PHP Loops and Conditionals <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> ! <h1><?php the_title(); ?></h1> ! <?php endwhile; endif; ?>
load JS in WordPress is via the header or footer files Loading JavaScript Files <script src=“/wp-content/themes/themename/js/ theme.js”></script> ! <script src=“<?php echo get_template_directory_uri(); ?>/js/theme.js"></script>
no conflict ! - The $ does not work by default - Allows WP to work with multiple JS libraries - Can setup WP to have $ work with jQuery jQuery(document).ready(function($) { $('.flexslider').flexslider(); })