New Work: Fat Pants

fat-pants-01

Not quite ‘work’, seeing as my new second blog, Fat Pants, is a personal self-initiated project, documenting my food life in the DC area. I modified the free Shaken Grid theme and added a couple extra functionalities (ie: comments). Check it out for mouthwatering pics and great DC area restaurant recommendations.

(more…)

WordPress as a CMS

Dec 30, 2009 | Blog, Design, Resource, Web, Wordpress

Lately I have been doing research for a few potential projects regarding using WordPress as a CMS (and either without a blog all together, or using it as an extra maintained ‘within’ the site).

Below are useful links and resources I have gathered while explorer this topic:

Graphic Design Blog: WordPress as a CMS – Content Management System
Extremely useful article providing examples of WP being used as a CMS, tips from design Jennifer Farly, and a great list of links furthering the topic.

Noupe: 101 Techniques for a Powerful CMS using WordPress
Excellent collection of hacks and tricks. This article covers basics like creating a static home page to more complicated topics like setting up custom page templates. Also contains useful links and resources at the bottom of the post.

Tech Spikes: 20+ Plugins That Convert WordPress Into A Full Fledged CMS
Useful list of plugins. I’m especially interested in Simple CMS WordPress Plugin (removes complicated blogging functionalities from the WP admin interface), BM Custom Login Plugin (helps create a custom WP login screen for clients), and Maintenance Mode Plugin (adds a splash page while blog is down for maintainence).

Blogsessive: 10 Beautiful Non-Blog Websites Powered by WordPress
Blogsessive: 10 More beautiful websites using WordPress as CMS

Onextrapixel: The Autopsy Of WordPress As CMS With 25 Great WP Plugins & Designs

I find the gallery of WP as a CMS designs at the bottom of the post the most useful yet. Definitely worth a look for inspiration and an idea of WP capabilities.

LoopPress: A Showcase of Beautiful WordPress Websites, Blogs & Themes

Slayerment: Drupal VS Joomla VS WordPress
Since majority of my WordPress experience is from this past year, I found Slayerment’s article a helpful interpretation of the strengths and weaknesses of the web’s three most popular content management systems. Though the article is 2+ years old, its clean organization of a wide variety of comparisons is a good base for grasping a beginning knowledge on all three. That begin said, a lot can be changed/updated in 2 years.

As I continue my research (and work on projects revolving around the content), I’ll continue to post more resources and inspiration.

WordPress: Latest Post per Category Homepage

Oct 21, 2009 | Blog, Design, PHP, Web, Wordpress, byK

As 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:

most-recent-posts

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 &#187;’, ’1 Comment &#187;’, ‘% Comments &#187;’); ?></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 &#187;’, ’1 Comment &#187;’, ‘% Comments &#187;’); ?></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/