What is the difference between Twenty eleven & roots framework?

It seems like there are two questions here: “how do I include Boilerplate/Bootstrap in Twenty Eleven?” and “how should I choose between these two theming options?“. I’ll try to answer both: Boilerplate/Bootstrap in Twenty Eleven I’ll start by saying this probably isn’t a good idea. With that said, the easiest way would be to make … Read more

Per theme plugins?

There is no way to bind it to a specific theme unless you contact theme authors and they link back to you at some point (on theme activation with yellow message on the top or in their admin menu etc). As you suggested yourself, a plugin is supposed to work with any theme. Theme and … Read more

display two images in theme header.php file

I think you should be using the WordPress loop instead of a foreach, since you’re using WP_Query. <?php if( $header_images->have_posts() ) { while( $header_images->have_posts() ) { $header_images->the_post(); ?> <div class=”header-image”> <?php echo get_the_post_thumbnail( $post->ID, ‘thumbnail’ ); ?> </div> <?php } } ?>

Date based CSS/theme

I php you can create an anchor class based on the desired date. I haven’t tested it, but it should be something like this: // your relevant html parent element <div class=”<?php echo getOlderPostsClassName( ‘5/5/2012’,the_time() ); ?>”> function getOlderPostsClassName($untilDate, $wordpressPostDate) { $start = strtotime($untilDate); $end = strtotime($wordpressPostDate); if ($start-$end > 0) { return ‘My_css_class_for_older_posts’; } … Read more