Matthew Trevino's Scarform
this.isn't.it.

Dropdown mini-loop and blogroll

Taking a page from this tutorial at Problogdesign.com, you can apply this drop-down menu method to just about anything in Wordpress, from a mini loop to the blogroll.

I’ll assume that you’ve already followed the steps in the tutorial, and created your markup and css and image.

For these examples, you’ll need to make sure all .css references match the div class names that are set in the examples.

Blogroll:

1
2
3
4
5
6
<div class="blogroll">
<p>Blogroll</p>
<ul>
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
</ul>
</div>

Mini-loop:

1
2
3
4
5
6
7
8
9
10
11
<div class="miniloop">
<ul>
<?php  
                    $new_posts = get_posts("numberposts=20"); 
                    foreach($new_posts as $post){
                    setup_postdata($post);
                     ?>
                        <li>&nbsp;&nbsp;<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3></li>
                        <?php }?>  
</ul>
</div>



required



required - won't be displayed


Your Comment:

Posted: October 18th 2009
Category: Code Snippets
Tags: , ,

As you may have probably guessed at some point, I enjoy pornography. There’s nothing wrong with it, and I won’t go into a diatribe over the pros and cons and fall all over myself explaining anything. This isn’t the first time I’ve posted or linked to content of a pornographic nature, and it [...]

Previous Entry

From 2003:

don’t do that; your face’ll get stuck on it. i saw godzilla because it was an imagination and then matt through his arms in the air because it was an imagination to him tooooo. do i look fat to you???

b:”do you feel like i do?”
m:”i don’t know how do you feel? uhh”
b:”like [...]

Next Entry

Archives
Categories