the Studio is now Live

Graphic Design and Web Development: This article is part of my journey to mastering theme development on Wordpress. The Studio showcases featured artwork from Archon Digital's portfolio.

the Studio is now Live

Archon Digital has uploaded the Studio,  a new section where I intend to post design related articles and some featured artwork. Working on this section had me use a few techniques on how to implement custom fields and multiple Wordpress loops which I will discuss in this article.

The Loop

This page was made using two loops. The first loop works by fetching the last five posts on the Studio category excluding post from the Portfolio category. It contains articles related to graphic design, web design, web development and Wordpress. The second loop then calls in all posts under the category Portfolio which is a special category I designed for showcasing artwork and in the future, some detailed case studies.

Here is the loop I used for the upper part where the titles are displayed:

have_posts()) : $my_query->the_post(); ?>
<h2><a title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;" rel="bookmark" href="&lt;?php the_permalink() ?&gt;"></a></h2>

The Switch Categories

The Portfolio category works like a switch much like how the Featured category works. Posts in the Portfolio category require custom fields to display some custom data such as client name, job output and other details which can be added later as the need arises.

The “Featured Artwork” section uses the following loop

query('category_name=Portfolio&amp;showposts=3'.'&amp;paged='.$paged);
?&gt;

Custom Fields

The portfolio displays artwork for each post using custom fields displayed through conditional tags which add some extra html to display images.

ID, "lead-image", true);
if ($thumb != "") { ?&gt;
<div><img src="&lt;?php echo get_option('home'); ?&gt;/wp-content/uploads/&lt;?php $values = get_post_custom_values(" alt="" />"/&gt;</div>

This method of displaying custom fields makes migrating themes and future maintenance much simpler as compared to pasting blocks of code into a custom field everytime you write a post. It uses a conditional tag to display the needed html around the custom field “lead-image” only if the post has the appropriate custom field on it. The “lead-image” custom field only requires that I input the filename of the image I want to use.

Less Clutter

Since this section is intended to showcase Archon Digital’s work, all possible forms of distraction like the Entrecard widget, Google Adsense and other sidebar clutter were removed except for the main adzone containing the site’s four main 125×125 advertisement slots.

Share and Enjoy

  • Digg
  • Twitter
  • Facebook
  • MySpace
  • Google Bookmarks
  • Technorati
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Mixx
  • LinkedIn

Share this Article

This entry was posted in Wordpress and tagged , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

6 Comments

  1. Posted November 23, 2008 at 1:56 am | Permalink

    looks good to me. very fresh and crispy! ;)

  2. Posted November 23, 2008 at 6:12 pm | Permalink

    I really like the way you do your design – low contrast, subtle but crisp. How I was I got a tenth of your talent. Hehe

    bloggista´s last blog post..Angels and Demons Movie Trailer

  3. Posted November 24, 2008 at 1:43 am | Permalink

    Currently on a mission to personalize a magazine theme I got, I find it impossible to focus on blogging than designing the site. hehehe.

    I also get my mind set on graphic design but I just don’t have the tools and the time to do it for now. Wish I don’t have a job. heheh

    bendz´s last blog post..Sun Cellular Releaseas Affordable Mobile Broadband

  4. Posted November 25, 2008 at 1:43 am | Permalink

    @bendz: I know exactly how I feel, I’ve invested more hours in design and theme development than actually writing on my own blog.

    I still have 23 draft posts on this blog full of code examples which I need to update when Wordpress 2.7 comes out.

    @bloggista: I also wish I had even just a fraction of your management skills…

    and I can’t even manage my own time properly.

    @Snow: Thanks, sometimes a pat on the back like that can really brighten up my day.

  5. Posted November 26, 2008 at 2:00 pm | Permalink

    I like the code. You have to be careful, your talent is showing.

    Lyndi´s last blog post..Blog Review: THE iNFINITY

  6. Posted November 27, 2008 at 1:47 pm | Permalink

    @Lyndi: thanks and also for posting it on WP-Scoop.

One Trackback

  1. [...] ArchonDigital, released his new portfolio page, the Studio as part of his sinister master plan towards world domination. Check out his subtle yet crisp graphics creations, and his Wordpress theme development journey. [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

CommentLuv Enabled

Subscribe without commenting

  • CMF Ads

  • Advertisment

  • Archives

  • Categories