Archive for October, 2009
DC Sunrise – Balcony View
By Karey in Photography, Washington DCI know, another view from my balcony, but these pics definitely compete with last month's full moon. Since I have the flu, I've been sleeping all hours, and awake random hours of the night with a fever and coughing fits. Luckily, this morning it turned out worth it as I randomly awoke during a beautiful sunrise. Check 'em out below!
A little later in the morning:

Click each image to view a higher res version.
Iwo Jima Memorial
By Karey in Photography, Toy Camera, Washington DCIt's 74 degrees out and BEAUTIFUL today. Took a long walk around Arlington and snapped this photo with my iPhone of Iwo Jima Memorial. The vintage effect of my Toy Camera app don't do the weather justice but nevertheless make a nice pic.
More around Washington DC
Wordpress: Latest Post per Category Homepage
By Karey in Design, PHP, Web, Wordpress, byKAs mentioned in a previous post, on a recent project I was asked to create a customized home.php file to display the latest post for three particular categories on the home page. The first one containing a larger image than the other two. In addition, below the home page recent posts, the client wanted an array of thumbnails displaying only images in a grid of ALL the most recent posts. The block graphic below displays the proposed homepage content outline:
Below is selected code used to construct this page:
LARGE IMAGE - MOST RECENT POST FROM SELECTED CATEGORY
<?php
for ($i = 1; $i <= 1; $i++) {
if ($i==1) {$oi_cat = "category01";}
?>
<?php
$query= 'category_name='.$oi_cat.'&showposts=1';
$recent = new WP_Query($query); while($recent->have_posts()) : $recent->the_post(); ?>
<div class="fix">
<div class="title">
<h2 class="posttitle"><a href="<?php the_permalink() ?> "> <?php the_title(); ?> </a></h2>
<div class="postdata"><span class="category"><a href="/category/<? echo $oi_cat; ?>/">More <?php the_category(', ') ?> </a></span> <span class="comments-home"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></span></div>
</div>
<div class="entry-home">
<? $thumb = get_post_meta($post->ID, "large-image", true);
if ($thumb != "")
{ ?>
<img src=" <?php $values = get_post_custom_values("large-image"); echo $values[0]; ?> " alt="<?php the_title(); ?> class="post-image"/>
<?php }
the_excerpt(); endwhile; ?>
</div>
</div>
<?
}
?>
TWO MEDIUM IMAGES - MOST RECENT POST FROM SELECTED CATEGORIES
<?php
for ($i = 1; $i <= 2; $i++) {
if ($i==1) {$oi_cat = "category02";}
if ($i==2) {$oi_cat = "category03";}
?>
<?php
$query= 'category_name='.$oi_cat.'&showposts=1';
$recent = new WP_Query($query); while($recent->have_posts()) : $recent->the_post(); ?>
<div class="fix">
<div class="title">
<h2 class="posttitle"><a href="<?php the_permalink() ?> "> <?php the_title(); ?> </a></h2>
<div class="postdata"><span class="category"><a href="/category/<? echo $oi_cat; ?>/">More <?php the_category(', ') ?> </a></span> <span class="comments-home"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></span></div>
</div>
<div class="home">
<? $thumb = get_post_meta($post->ID, "med-image", true);
if ($thumb != "")
{ ?>
<img src=" <?php $values = get_post_custom_values("med-image"); echo $values[0]; ?> " alt="<?php the_title(); ?> align="left" class="post-image"/>
<?php }
the_excerpt(); endwhile; ?>
</div>
</div>
<?
}
?>
ARRAY OF THUMBNAIL IMAGES FROM ALL CATEGORIES
<div class="thumbs">
<?php
$query= 'showposts=15';
$recent= new WP_Query($query); while($recent->have_posts()) : $recent->the_post();
?>
<? $thumb = get_post_meta($post->ID, "thumb-image", true);
if ($thumb != "") {
?>
<a href="<?php the_permalink() ?> "><img src="<?php $values = get_post_custom_values("thumb-image"); echo $values[0]; ?> " alt="<?php the_title(); ?> " class="thumbnail" title="<?php the_title(); ?>"/></a>
<?php }
endwhile; ?>
</div>
I apologize if the code is a bit messy, but I took me awhile to code this so I hope it will be useful to anyone looking for a similar build!
Lastly, below are some links I found useful relating to this post:
(this first link was especially useful thanks to c64glen)
http://wordpress.org/support/topic/222993
http://codex.wordpress.org/Template_Tags
http://www.aaronrussell.co.uk/blog/improving-wordpress-the_excerpt/
http://wpguru.co.za/page/creating-a-static-wordpress-front-page/
Websites Using Wood Textures
By Karey in Inspiration, WebAll three of these websites do an excellent job incorporating background wood textures into their design.
New Work: NMS booth graphic
By Karey in Illustrator, Photoshop, Print, byKNational Medical Solutions asked be to design a graphic for a booth display at an upcoming convention. Below is my design, in which I super imposed in Photoshop two different surgeon images to achieve their preferred surgery room aesthetic and appropriate doctor attire. Lastly, I used the Illustrator Opacity Mask to achieve the gradient effects and color scheme.
Final graphic:
Two original surgeon photos:
Superimposed photo:
New work: Molly’s Menu
By Karey in Web, byKBefore heading off on vacation I finished a new project for local DC private chef Molly Zemek. The project included the customization of her cooking blog and development of a logo. The overall design emulates the idea of 'mise en place' - or everything in place, as a chef might have set up in preparation for cooking. In order to meet the required specifics of the client, the project required extensive back-end development and code customization. In a follow up post this week, I will include pieces of source code for the customized layout of the homepage, stay tuned!
Visit Molly's blog at: www.mollysmenu.us
Note: Some of the images below feature sample posts used in the design. Check out the site for Molly's own up-to-date posts, well worth a look!

Home page design w/ sample post (check current site for up-to-date posts)

Logo design: Molly's favorite food is an artichoke, which she wished to utilize in the logo with her name. The artichoke features a realistic design to compliment the 'mise en place' theme of the site.
View more images at: www.kareydarnellhelms.com

























