![]() |
WP: Displaying taxonomy terms by first letter?
I'm looking for the best way to properly display all of the models for a given letter. So if, for example, someone is looking for "Asa Akira" they can click "A" on my site and search through all the models that start with "A".
I can't wrap my head around how that would be accomplished though. Each model on my site belongs to the "Model" taxonomy. How would I only display results from my Model taxonomy that start with "A" "B" "C" and so on? |
Hello, maybe these can get you started.
http://codecanyon.net/item/taxonomie...widget/4282257 http://codecanyon.net/item/az-glossa...-index/4481898 http://codex.wordpress.org/Function_Reference/get_terms |
Thanks, but I've already looked at the Wordpress codex and couldn't find anything specifically about dividing up an existing taxonomy the way I'm looking to.
Anyone else? |
http://wordpress.org/support/topic/h...y-first-letter
First result on google. If you go to my blog, click porn stars you can see it filter the taxonomy in real time. |
Yes, I saw that when I was searching for solutions.
However, that displays all the taxonomy terms on one page. I want to be able to show one letter at a time, and if at all possible, I'd like them to display in the same fashion as they would if I clicked on the taxonomy terms themselves, showing only as many results per page as I have set in the "reading" settings in the WP admin section. I'm basically looking to achieve something similar to the model sections on this site: babesandstars.com You click each letter, it shows a set amount per page, and an image with the name. |
Hmm. I seem to be over complicating this for myself. Basically, I need to just change this chunk of code:
Code:
<?php if(have_posts()) { ?> I appreciate the assistance. It's tough, I know what I intend to do, I just don't know the proper terms to research to figure out how it's done. |
Scratch the last post, I managed to fix that.
Still, I haven't found a way to display one letter at a time from the taxonomy. Anyone know a solution to that? |
You could try something like this:
Create a page template for each letter of the alphabet (e.g. a-page.php, b-page.php, etc...). The loop on each page would look something like this: PHP Code:
|
All times are GMT -7. The time now is 04:41 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123