Blog

A Beautiful Tool for Displaying Online Magazine ISSUUS
You know how it is, you have a print magazine, ...
Introducing Black Widow 1.0: the Best Magazine Theme Concept Released on WordPress to Date
I've had numerous entries about the Black Widow Magazine theme. ...
One of the most uninteresting news sites on the internet
The Brown Daily Herald has got to be one ...
Internet Explorer 8
Today i downloaded Internet Explorer 8, which is ...
Making a Theme Your Own
One of the first things I did when I uploaded ...
 
Using tags to display stuff in the WordPress loop
by Joshua Unseth

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

I spent the better part of today trying to manipulate the archive.php page on the Mimbo theme. Nowhere on the internet was I able to find how to integrate tags into your post. If you use the following code on your website, you can build a loop that utilizes the tag that is clicked on by your website’s user. This particular coding was the top of my “lead” story loop.

<!–
<?php
$single_tag_title = single_tag_title();
$tag == str_replace(" ", "-", $single_tag_title);
$tag == strtolower($tag);
?>–>
<div id="content">
<div class="feature clearfloat" id="lead">
<?php
// this is where the Lead Story module begins
query_posts('showposts=100&category_name=lead&tag=' . "$tag" . ' ' . "$tag");
?>
<?php while (have_posts()) : the_post(); ?>

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Most Viewed

RSS Feeds
© 2008 SpiderMarket