![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 184
|
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?
__________________
www.tittytweaker.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 117
|
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 |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 184
|
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?
__________________
www.tittytweaker.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 117
|
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. |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 184
|
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.
__________________
www.tittytweaker.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 184
|
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()) { ?> <h2 class="page-title"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a><?php wp_title(); ?></h2> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(array(180,240), array('alt' => get_the_title(), 'title' => '')); ?></a> <div class="link"><a href="<?php the_permalink() ?>"><?php short_title('...', '26'); ?></a></div> <span>Added: <?php the_time('F j, Y'); ?></span> <span><?php $model_list = get_the_term_list( $post->ID, 'model', 'Model: ', ', ', '' ); // Output taxonomy information if there was any if ( '' != $model_list ) { echo $model_list; } // endif ?></span> 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.
__________________
www.tittytweaker.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Dec 2012
Posts: 184
|
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?
__________________
www.tittytweaker.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Sep 2013
Location: Florida
Posts: 252
|
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:
__________________
-= gracesfall =- FreeLesbianPornBlog.com Follow me on Twitter: https://twitter.com/gracesfall Like me on Facebook: Free Lesbian Porn Blog Hit me up on ICQ: 663050376 Domains for Sale: DaddyWhoreBucks.com | YoungAndFuckable.com | KnobGobblers.com |
![]() |
![]() ![]() ![]() ![]() |