A few weeks ago I wrote about how to create your own template for WordPress. A type of design growing in popularity is the Magazine style theme. Probably because it comes across as a more professional look and is maybe a bit less overwhelming to first time visitors, as it typically only displays the most recent post in full, and then lists previous posts.
The first time I saw a magazine style theme was The Morning After from Arun Kale. There were others around but this caught my eye immediately. There are a lot more of these style of themes around now for you to download and play with.
However, if you want to perhaps take your own design and convert it to a magazine style then it’s not that hard to do. Using my original posts on creating your own template, we need to build on this.
The first step is to duplicate your usual multi post index.php page and save it as archive.php (if you haven’t already). This will then keep your archives and category pages listing your posts out as usual. Alternatively you could alter these pages to just have an index of all the posts.
So once you’ve duplicated the index.php, you need to then open up index.php to edit this for the front page. The code we can use follows:
< ?php $postchk = TRUE;
if (have_posts()) :
while(have_posts()) :
the_post();
if ($postchk) :
$postchk = FALSE; ?>
<div class="post" id="post-2874">
<h2><a href="http://www.bloggingtips.com/2008/09/14/create-a-magazine-style-theme/" rel="bookmark" title="Permanent Link to < ?php the_title_attribute(); ?>">< ?php the_title(); ?></a></h2>
<small>< ?php the_time('F jS, Y') ?> <!-- by Sarah --></small>
<div class="entry">
< ?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata">< ?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in < ?php the_category(', ') ?> | < ?php edit_post_link('Edit', '', ' | '); ?> < ?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<ul>
< ?php else : ?>
<li><a href="http://www.bloggingtips.com/2008/09/14/create-a-magazine-style-theme/" rel="bookmark" title="Permanent Link to < ?php the_title_attribute(); ?>">< ?php the_title(); ?></a> < ?php comments_popup_link('', '(1)', '(%)'); ?></li>
< ?php endif;
endwhile ?>
</ul>
< ?php endif; ?>
To explain the main additions here:
This will give us a full post first followed by an unordered list of the archived posts. The number of posts displayed will follow your settings in the Options – Reading admin panel.
Magazine style posts can look more professional, they can also give a less blog like look and possibly a better structure for seeing information quicker, however they need to be structured well to ensure your readers can find what they want to find as easy as possible.
Author comments are in a darker gray color for you to easily identify the posts author in the comments
Comments are closed since this post is older than 30 days. However, you can continue this discussion in our popular Blogging Forums
This is an awesome idea. I have bookmarked it and will share with my webmaster. Thanks for sharing
Cracking idea, will be sure to try this out when I have some time
that looks awesome!
I think one of the problems with some of the magazine style wordpress sites its that they don’t think of the user who has to update the site. A lot of the time they use extended post data which the user has to know how to use. So while the front end looks great it is not that easy to implement.
It will be good if your examples will be easy for the user to look after his site as well.
Obviously so far what you have shown us doesnt really effect the user as this is an automatic part of teh template which i like very much
Hi Sara
thanx for this and your 1st post (i haven’t read it yet though
)
i am taking print outs of your post and planning to work on my own theme ( i am fade up of trying all the free themes )
i hope you wont mind me contacting you if i need any help or explanation of codes?
Cheers for the comments guys.
Slee – I’ve not come across a theme using the extended post data but it doesn’t sound user friendly. The method posted is quite basic so fairly simple to do but a subtle change can give a great effect.
Sunil – If you need any help post up here or join the Blogging Tips forum where there’s plenty of help available and waiting
I’ve been looking for something like this…many thanks! I’m just starting a new blog and had decided on Wordpress. Hopefully this will all work for me!
Hi Sarah thanx for the invitation
cya there guys