Previously, we saw how WordPress can capably handle data more like a small-scale CMS than a traditional blog, assuming the developer is willing to get creative with some Template Tags and The Loop. With that in mind, let’s move toward a more sophisticated homepage concept.
Sample scenario: a client needs your help in realizing his dodgy dream of starting an online men’s magazine in the vein of GQ or Details. His existing site already runs the standard WordPress blog format, but now he’s seeking a more ambitious, exploded-view layout to accommodate a variety of content modules and features somewhere between Nirali and Talking Points Memo.
With his love of hair gel, gossip and designer messenger bags, it’s not surprising our client’s new publication will be called Mimbo. He’s even sketched out a wireframe for the homepage (click for demo):
It’s nothing too polished yet, just a grid-based concept illustrating the main content components we’ll need to tease out of WordPress: “Lead Story”, “Last Three Features”, “News”, “Contributors” and so on. How do we tie all this together on one page? Let’s start at the top and explore each module step by step:
- Logo and TaglineIn the upper corner of Mimbo‘s layout, you’ll see our branding which is really just the site title (“Mimbo”) and tagline (“by men, for men”) and can be edited from the control panel:

The functions are standard to any WordPress installation and can be added to your page like this:
<a href="/"><?php bloginfo('name'); ?></a> <?php bloginfo('description'); ?> - Search moduleYou probably already knew that the search bar in the upper right corner originates from a PHP-include which looks like this:
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
You can always style the search bar to your liking, or create a custom search page.
- Lead Story ModuleEach issue of Mimbo will feature a Lead Story module with a photo, a category title, an article title and an excerpt.
Let’s start with the photo. First find an appropriate image and resize it to 269×178. Next, upload it to the correct folder (example: /wp-content/themes/mimbo2/images/).
Now I’ll begin a new post and create a category called “Lead Story”:
After writing my post, I will scroll down to the “Custom Field” box. I’ll need to name the Key “Image” (with a capital “I”) and my Value will simply be the filename of that image:
Before saving our post, know that the the_excerpt function will automatically pull the first 55 words from our post. If you’d like to provide alternative excerpt text, just fill in the “Optional Excerpt” field:

When you’re done, save the post. Now, what PHP magic must happen to print it all to the homepage?
<?php query_posts('showposts=1&cat=3'); ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php echo get_option('home'); ?>/wp-content/themes/mimbo2/images/<?php // this is where the Lead Story image gets printed $values = get_post_custom_values("Image"); echo $values[0]; ?>" alt="" id="leadpic" /></a> <h3> <?php // this is where the name of the Lead Story category gets printed single_cat_title(); ?> </h3> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="title"> <?php the_title(); ?> </a> <?php the_excerpt(); ?> {<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">More»</a>} <?php endwhile; ?>In the query_posts function at the top, you’ll notice a parameter called “cat=3″. That id number will differ from user to user, depending on what number is assigned in your database. It can be viewed in your control panel under Manage->Categories:

Be sure to adjust yours accordingly.
- Three FeaturesIn the lower left column, you’ll see three Feature boxes containing a photo and a title. Just like with the Lead Story, we’ll need to create a new category called “Features”, use Custom Fields to input the images, and pull it all together with Template Tags:
<?php // this is where the Features module begins query_posts('showposts=3&cat=4'); ?> <h3> <?php // this is where the name of the Features category gets printed single_cat_title(); ?> </h3> <?php while (have_posts()) : the_post(); ?> <div class="feature"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php echo get_option('home'); ?>/wp-content/themes/mimbo2/images/<?php // this is where the custom field prints images for each Feature $values = get_post_custom_values("Image"); echo $values[0]; ?>" alt="" /></a><a href="<?php the_permalink() ?>" rel="bookmark" class="title"> <?php // this is where title of the Feature gets printed the_title(); ?>»</a></div> <?php endwhile; ?> - Category BlurbsIn the lower middle column, you’ll see there are categories like Music, Style and Gadgets. For each we want to pull a photo, a title and an excerpt. Instead of duplicating the same Template Tags for each category, we put the categories into an array and pull them like this:
<?php // this is where you enter the IDs of which categories you want to display $display_categories = array(5,6,7); foreach ($display_categories as $category) { ??> <?php query_posts("showposts=1&cat=$category"); ??> <?php // this is where you enter the IDs of which categories you want to display $display_categories = array(5,6,7); foreach ($display_categories as $category) { ?> <?php query_posts("showposts=1&cat=$category"); ?> <h3><?php // this is where the category name gets printed single_cat_title(); ?></h3> <?php while (have_posts()) : the_post(); ?> <?php // this grabs the image filename $values = get_post_custom_values("Image"); // this checks to see if an image file exists if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php echo get_option('home'); ?>/wp-content/themes/mimbo2/images/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>" alt="" /></a> <?php } ?> <a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?>»</a> <?php the_excerpt(); ?> <?php endwhile; ?> <?php } ?> - News HeadlinesAt the top of our sidebar are three headlines from the “News” category. You may have already guessed that we need a new category called “News” and another query_posts function:
<?php query_posts('showposts=3&cat=8'); ?> <ul> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> - Browse ArchivesBecause the archive list can become very long over time, we will display ours in a pull down menu:
<form id="archiveform" action=""> <select name="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);"> <?php get_archives('monthly','','option'); ?> </select> </form> - Ads & Sponsors (Optional)If you wish to insert advertising, open sidebar.php and add whatever code is needed.
- ContributorsLast comes our “Contributors” module which uses the wp_list_authors function to query our database for contributors, print them in a list and include an RSS link for each:
<ul> <?php wp_list_authors('exclude_admin=1&show_fullname=1&hide_empty=1&feed_image=/wp-content/themes/mimbo2/images/rss.gif'); ?> </ul>Using a few available parameters, I have opted to exclude myself (administrator) from the list, show the name of each author, hide the name of any author who has not published anything and display an RSS icon.
That seems like a pretty good start to our magazine empire. Now it’s up to the client (himself a confirmed mimbo) to hire some talented writers and hope for the best.

Pingback: Quality Peoples » Magazine Layouts with WP
Pingback: WordPress as an Online Magazine
Pingback: Customizing Wordpress the Easy Way!
Pingback: WordPress 作为一本网络�志 | wordpress blog xqxp.com
Pingback: Mit Wordpress ein Online Magazin bauen
Pingback: links for 2007-07-27
Pingback: marlyse.com » In Praise of Wordpress Template Tags, Part II: The Magazine Layout
Pingback: Entreprenews of the Week -- Young Go Getter
Pingback: links for 2007-07-29 « toonz
Pingback: Basic Thinking Blog » Wordpress als CMS
Pingback: links for 2007-07-30 | MY Vast Right Wing Conspiracy
Pingback: Mine del.icio.us-links den 31. juli
Pingback: one digital life » Blog Archive » Tutorial: Magazine layouts with Wordpress
Pingback: 10 Links für ein besseres WordPress-Blog | NanoPub
Pingback: Recommended Reading for 25th July through 4th August
Pingback: adventures of a blogjunkie » Blog Archive » del.icio.us bookmarks for August 4th
Pingback: links for 2007-07-26 en newdisco
Pingback: Thème Wordpress Magazine, un soupçon de CMS ?
Pingback: Mimbo Magazine-style WordPress Theme » D’ Technology Weblog: Technology News & Reviews
Pingback: blog do valdecir carvalho » Blog Archive » links for 2007-08-07
Pingback: Magazine Layout | The WP Journal
Pingback: Best of July 2007 | Best of the Month
Pingback: Nachlese Juli 2007- Die Seiten des Monats » Allgemeines
Pingback: Best of July 2007 .
Pingback: lost node » Blog Archive » Best of July 2007
Pingback: Mark Kirby - Brighton » Blog Archive » links for 2007-08-14
Pingback: links for 2007-08-14 | betohayasida.net
Pingback: My del.icio.us bookmarks for August 1st through August 14th
Pingback: Post-ferie linkopsamling | Webmercial.dk
Pingback: Wordpress Template Tags: The Magazine Layout
Pingback: The Rock ‘n’ Ro Show » Blog Archive » Entreprenews of the Week
Pingback: Web 2.0 Blog » Blog Archive » Nachlese Juli 2007- Die Seiten des Monats - aus dem Blog:Dr. Web Weblog[Quelle]
Pingback: » Wordpress Magazine Theme Released
Pingback: » Build A Dynamic Design Portfolio with Wordpress
Pingback: » Managing Wordpress Template Tags with Dreamweaver Snippets
Pingback: Darren Hoyt Dot Com » Blog Archive » Wordpress Magazine Theme Released
Pingback: Darren Hoyt Dot Com » Blog Archive » Updates to the Magazine Theme Tutorial
Pingback: Darren Hoyt Dot Com » Wordpress Themes Aren’t Just Pretty Packaging
Pingback: WP Deneme » Blog Archive » Wordpress Magazine Theme Released
Pingback: WP Deneme » Blog Archive » How do I add images to the homepage
Pingback: WP Deneme » Blog Archive » Why does the formatting of my excerpts look strange?
Pingback: josh fassbind » Blog Archive » Ladida, Ladida
Pingback: En bedre tegneserieside, del 1: 404 not found at superevil.org
Pingback: åƒ?CMSä¸€æ ·çš„WordPress 主题Mimbo : : MoonShow
Pingback: HIC SUNT LEONES » Blog Archive » News Post #1
Pingback: HIC SUNT LEONES » Blog Archive » News Post #2
Pingback: HIC SUNT LEONES » Blog Archive » Event #1
Pingback: HIC SUNT LEONES » Blog Archive » Event #2
Pingback: HIC SUNT LEONES » Blog Archive » Uncategorized
Pingback: HIC SUNT LEONES » Blog Archive » Incoming #1
Pingback: HIC SUNT LEONES » Blog Archive » Connection #1
Pingback: HIC SUNT LEONES » Blog Archive » History #1
Pingback: HIC SUNT LEONES » Blog Archive » Incoming #2
Pingback: HIC SUNT LEONES » Blog Archive » Event #3
Pingback: HIC SUNT LEONES » Blog Archive » Event #4
Pingback: » Wordpress Magazine Theme —— Mimbo䏿–‡è¯´æ˜Ž EZY Street» Blog Archive
Pingback: Thème en préparation : Mimbo 2.1 « Calyptratus WordPress Corner
Pingback: Mark Thomas Gazels websted » Blog Archive » links for 2007-11-19
Pingback: bubez.com » Blog Archive » Test del cazzo
Pingback: Le Blog de Brakwiz » News » Bienvenue sur “Brakwiz 2.0″
Pingback: Keren!!! Template Mimbo « Zoel’s Website & Blog
Pingback: Ett par snygga Wordpress mallar | Westberg Sökmotoroptimering
Pingback: 电影家 » æ–° » 11月 13th, 2007 WPæ?‚志模æ?¿Mimbo䏿–‡ä½¿ç”¨è¯´æ˜Ž
Pingback: KodeeXII.Net » Blog Archive » Mimbo Theme It Is
Pingback: Rechangement de thème ! : Le Blog de Brakwiz
Pingback: gfhfhfdh |
Pingback: Mimbo Theme Live | Kelson Consulting
Pingback: YouR on This ! |
Pingback: Scratch » Features » Afridi Blazes A Tonne
Pingback: Scratch » Uncategorized » Walla!
Pingback: Mimbo䏿–‡ä½¿ç”¨è¯´æ˜Ž | 沿阶è?‰å ‚
Pingback: Moving Over to Wordpress: My Observations
Pingback: claims4negligence.co.uk » Uncategorized » Person Injury Claim
Pingback: Moving Blogger Over to Wordpress: The Good, Bad and the Ugly
Pingback: E拉客 » 测试分类 » WPæ?‚志模æ?¿Mimbo䏿–‡ä½¿ç”¨è¯´æ˜Ž
Pingback: Sollzustand » Eine kleine Geschichte über Eine, die unbedingt ein Wordpress Theme anpassen mußte
Pingback: Free WordPress templates, plugins » Blog Archive » Mimbo Free Wordpress Template
Pingback: Webzine | Ceci est un test d’article
Pingback: Vertrekkers Info » Welkom » Welkom bij Vertrekkers Info!
Pingback: La Pinta Medicea » Blog » prova
Pingback: Layoutica.com - Mimbo: Free Wordpress Magazine Theme
Pingback: Burwood » LEAD STORY WordPress » Wordpress Magazine Theme Released
Pingback: ç?µÂ·å??-[soulreturn] » 我喜欢的 » 感谢 | Mimbo theme !
Pingback: Jet Pack » Flagship » Testing the Ratings System
Pingback: vandervleuten.org » Lead Story » Mimbo Magazine
Pingback: instruccion juego dado
Pingback: Thèmes Wordpress | css-xhtml
Pingback: The Fresh Press » Lead Story » Checking…
Pingback: The end of Premium wordpress themes? » hervedesign(dot)com
Pingback: The Business of Art» Your website » About this site design
Pingback: Art Service Pfleging » Archive » Mimbo Magazine Theme
Pingback: Chylly`s Celebrity Magazine Reloaded | Chylly`s Celebrity Magazine
Pingback: Dumitru Bostan despre Web 2.0 » Wordpress » WP demo
Pingback: Eyka » Blog Archive » Nowruz
Pingback: en test rubrik
Pingback: 3 testet är här nu
Pingback: 二月河 » åº·ç†™å¤§å¸ » Mimbo模æ¿
Pingback: Hello | Y e e e e e e
Pingback: Mimbo v2.2 - Wordpress Magazine Theme : Themes Blog’s
Pingback: for the life category | michael john grist
Pingback: study | michael john grist
Pingback: reviews | michael john grist
Pingback: Mimbo WordPress Themes
Pingback: Best Wordpress Themes » Mimbo Pro
Pingback: NEVER WALK ALONG » my words » 我的未æ¥
Pingback: CultureEnJeu » Actualités Agir » Initiative
Pingback: CultureEnJeu » Témoignages » Initiative
Pingback: Estrenos de DVD » Lead Story » lalalal
Pingback: Oltre il deserto » Senza categoria » rggg
Pingback: Oltre il deserto » Senza categoria » rfrvtv 4t 4
Pingback: Oltre il deserto » categoria seconda » rfr 4t
Pingback: Oltre il deserto » categoria seconda » r4r 4
Pingback: Oltre il deserto » terza categoria » terza prorr
Pingback: Oltre il deserto » terza categoria » quarta
Pingback: prova 2.5 CR 1 : oooo
Pingback: prova 2.5 CR 1 :
Pingback: 壹é¾è§†è§‰ » 壹é¾ç”Ÿæ´» » WordPress 模æ¿
Pingback: WordPress Upgrade and New Theme :: radian
Pingback: The Magazine-Style Wordpress Theme Mimbo
Pingback: Sillery Animation » Les loisirs récréatifs » Nouvel essai
Pingback: mimbo magazine theme released
Pingback: actu 2 | Vibrations de santé
Pingback: rubatogandaia.mus.br » Lenine » Testando Novamente
Pingback: rubatogandaia.mus.br » Lenine » Testando Numero 2
Pingback: rubatogandaia.mus.br » Cultura Geral » Testando Cultura 02
Pingback: rubatogandaia.mus.br » Cultura Geral » Testando Cultura 03
Pingback: rubatogandaia.mus.br » Cultura Geral » Testando Cultural 04
Pingback: Lenine Fan Cultural » Teste001 » Nova Categoria
Pingback: Lenine Fan Cultural » Features » Teste Features
Pingback: INTELLIGENT NAIVETY » The Entrepreneurial Museum » First entry on Entrepreneurial museum
Pingback: BLOGPOSTER Magazine » Reportaje » Carteles guays
Pingback: Wordpress Magazine Theme Released | One Ummah
Pingback: Thursday Links Roundup - Putting Blogs First
Pingback: Wordpress Magazine Theme Released
Pingback: WP Junkie - Mimbo Magazine Theme
Pingback: p2ppr.co.uk » Testy » First post - testing the new theme
Pingback: Players Land » Uncategorized » Mais uma noticia com imagem
Pingback: 我的空间 » 未分类 » WPæ‚志模æ¿Mimbo䏿–‡ä½¿ç”¨è¯´æ˜Ž
Pingback: Magazin Themes: Vom Blog zum Internet-Magazin (1)
Pingback: Everybody Mimbo! « Tips from Idea15 Web Design
Pingback: PakistaniMusic.com Blog | Test Post #1
Pingback: The Genesis: Welcome to Internet Espionage, Awesome WP Links, and More | Internet Espionage
Pingback: represent.be » Blog Archive » test 2
Pingback: Gidman » Танцы » Ðккордион в Плазме
Pingback: When To Use Magazine-Style Themes For Blogs? | How-To | Smashing Magazine
Pingback: duane-francis.com » Test » Test
Pingback: Customizing your Wordpress Theme – Part 2 | Neowster
Pingback: Customize your WordPress Theme | Neowster
Pingback: My Blog » Features » About This Theme
Pingback: WordPress Blog » Uncategorized » mambo
Pingback: WordPress Blog » Lead Story » Test
Pingback: Mimbo 2 - | Cwave Soft
Pingback: light in the shadows » Blogging Blogs » Wordpress Themes (revisited)
Pingback: Fish in the River » Tools » Wordpress Magazine Theme Released
Pingback: Digital Utopia » Nuts and bolts of news publishing with WordPress
Pingback: 6 Things You Didn’t Know WordPress Could Be - PuttingBlogsFirst
Pingback: AUTOMOBILE-PARTS-DEPOT » Articles Featured Products » test featured product
Pingback: Mellowish » Blog Archive » No Images Grid Based Mimbo Magazine Theme
Pingback: todos somos julian ross » Música y vÃdeos » Dummy 4
Pingback: todos somos julian ross » Qué pasó con... » dummy 8
Pingback: testing 1 | 68 Photoshop VietNam
Pingback: testing 2 | 68 Photoshop VietNam
Pingback: » Dance Crew » test 4
Pingback: Mimbo 2 - | Cwave Soft
Pingback: calidos.com Lo BLOC… » Blog Archive » Inci de les obres del tram tal