wp_get_archives(‘type=alpha’)
Thanks to a great find. I was able to make some sweet adjustments to my site. With some modification to what JTK said on his website I used some really cool drop down boxes to achieve what I wanted on my site. I will give you the code for both.
First I wanted to make all my posts accessible on any post page. Then after I found that I could do that I found out how to make it not so obtrusive. Because if you have a lot of posts and not a lot of space on your page you don’t necessarily want the first option that JTK had.
So I found a different way and possibly a better one. If you look on my single post page you can see the top, right below adsense (two drop boxes), one with posts most recent and the other with posts alphabetized.
Anyway without further ado, THE CODE:
1 2 3 4 5 6 7 8 9 | <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php echo attribute_escape(__('Pick a new post to go to! (Most recent to oldest)')); ?></option> <?php wp_get_archives('type=postbypost&format=option&show_post_count=1'); ?> </select><br /> <select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""> <?php echo attribute_escape(__('Pick a new post to go to! (Alphabetically A-Z)')); ?> </option> <?php wp_get_archives('type=alpha&format=option&show_post_count=1'); ?> </select> |
Popularity: 1%
Related Posts
- Top 15 wordpress 2.7.1 plugins There is a lot of "stuff" on my page and...
- Confused about Autoblogging When I first started doing my web page I thought...
- Wordpress Installation 2.7 my way Well first things first you have to set up a...
- My own RSS for music files from PHP If you have read the previous post about the Website...
- How To Add Recent Posts of Current Category In Wordpress Blogs ? Do you want to display or add recent posts of...
- Top 50 Tools For The WordPress Admin [/caption] Running your Wordpress blog can feel like a full-time...
- How to Relocate your Wordpress Blog to a New Domain Name Making the decision to move my blog from http://www.courseladder.com to...
- WordPress Tutorial - Make a "Back to Top" Link Another Wordpress video tutorial that explains how to add a...



Firefox
about 8 months ago
Pretty cool post. I just stumbled upon your blog and wanted to say that I have really liked reading your blog posts. Anyway I’ll be subscribing to your blog and I hope you post again soon!
about 8 months ago
Thank you I found that when I wanted the thing on my header so it was easy to get to certain posts that I use very often to code and so forth.