This site is about the author's obviously biased, first-hand accounts of his elaborate and sinister plans for world domination. Within this cyberspace entity lies Archon Digital's previously untold undertakings to commit himself to gain a higher level of being (read as: pagerank and moolah!) and his miserable failures which led him to instead shoot for his minor goal of becoming a successful internet entrepreneur. Archon Digital is a graphic designer's personal site, blog and portfolio site where the author writes about life, art, design, technology, politics, the internet and the simplest crack humor that would make up his otherwise overloaded and stressful day.

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

 

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.

Possibly Related Posts:

Tags: ,

CMF Ads

7 Excellent Reactions to the article
“the Studio is now Live”

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

  2. 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. 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. @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. I like the code. You have to be careful, your talent is showing.

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

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

  7. [...] 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. [...]

Speak your mind and join the discussion

CommentLuv Enabled