Latest Post Styled Different Than other Posts

Since you’re using the default loop (not a custom one), you can check the counter for the first (0th) loop and alter your output just for that one. The WordPress support forum had a similar question that offered this bit of code: if( $wp_query->current_post == 0 && !is_paged() ) { /*first post*/ } You can … Read more

Using Javascript for Looped Content

This may help <?php $staff = new WP_Query(array( ‘posts_per_page’ => -1, ‘post_type’ => ‘staff_bios’, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’ )); while($staff->have_posts()){ $staff->the_post(); ?> //Below is what should display for each post. <div class=”staff-thumb” onclick=”staffDetails(<?php the_ID(); ?>)”> //Thumbnail details here </div> //Below is the pop up container (hidden until called). <div id=”<?php the_ID()?>” class=”popup-wrap”> <div … Read more

Dynamic Landing Page

The best solution here IMHO is to create a custom taxonomy named “highlights” or something similar. You can then create new terms for each landing page that you wish to create. The of of which would probably be “Blue Widgets”. You can then associate as many posts to the “Blue Widget” term as you wish. … Read more

Basic multiple loops only displaying first loop

add the loop code to the query_posts section; example: <div id=”blog-list”> <?php query_posts( array( ‘posts_per_page’ => 8, ‘paged’ => ( get_query_var(‘paged’) ? get_query_var(‘paged’) : 1 ), )); if( have_posts() ) : while( have_posts() ) : the_post(); ?> <div class=”post” id=”post-<?php the_ID(); ?>”> <div class=”description”> <h3><?php the_title_attribute(); ?></h3> <p><?php the_content_rss(”, TRUE, ”, 20); ?></p> </div> </div> … Read more