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(); ?>
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&showposts=3'.'&paged='.$paged);
?>
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 != "") { ?>
"/>
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.














7 Comments
looks good to me. very fresh and crispy!
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
Follow bloggista on Twitter
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
@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.
Follow archondigital on Twitter
I like the code. You have to be careful, your talent is showing.
Lyndi´s last blog post..Blog Review: THE iNFINITY
@Lyndi: thanks and also for posting it on WP-Scoop.
Follow archondigital on Twitter
great design but obviously skilled code-wise. thanks for sharing
One Trackback
[...] 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. [...]