Multiple conditions? cant figure it..
-
Im using Thesis Framework and I have this code which works great, the only problem is I need this code to work for the home page as well, is_home? but i cant seem to target home as well as what it already targets, could anyone take a look at it and help me out?
Thanks
function archive(){ if(is_archive()){ echo '<div class="three-teaser-row">'; $args = array( 'posts_per_page' => 15, 'post_type' => 'post' ); $my_query = new WP_Query($args); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; thesis_teaser('teaser', $post_count = false, $right = false); endwhile; echo '</div>'; } else { thesis_loop::archive(); } } } new my_archive_loop;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multiple conditions? cant figure it..’ is closed to new replies.