View Single Post
Old 02-10-2013, 01:05 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
Quote:
Originally Posted by Tittytweaker View Post
Yeah, unfortunately I really know nothing about wordpress, only as much as I can glean from tutorials and weave in with my limited html/css knowledge. It was easy to create the custom taxonomy, I just don't know how to actually implement the taxonomy the same way the tags are implemented.

.................

That right there is the actual chunk of code from my functions page. Is this all PHP code or
something? That's something I'm entirely unfamiliar with.
1. Yes that is php.

2. I did not know (as I said I am not a wp expert by any means) that they had a structured way to iintroduce a custom taxonomy. So you are doing it according to the book, that's good and probably better than the way I would have done it.

3. There should be information in the codex on how to use the custom taxonomy. I found a tutorial at http://net.tutsplus.com/tutorials/wo...om-taxonomies/ From what it says (and I am interpreting so my apologies if I do not have it right) you should be able to call your custom taxonomy thusly:

<?php

$model_list = get_the_term_list( $post->ID, 'model', '<strong>Model:</strong> ', ', ', '' );

// Output taxonomy information if there was any

if ( '' != $model_list ) {
echo $model_list;
} // endif

?>

Something like that.

Now all that depends on you getting your taxonomy definition right and having your terms defined for the various posts.

If you need additional help I would suggest you hit up Fris or someone like that who is well versed in wp.

Have fun.

.
__________________
All cookies cleared!

Last edited by sarettah; 02-10-2013 at 01:07 PM..
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook