![]() |
WP Template Hierarchy - Same theme across entire taxonomy, but different info depending on term?
So far, I'm just throwing together a layout on one model, which you can see here, but eventually I want to roll it out across my entire model taxonomy. I'd like to do this by simply applying the theme to the model taxonomy(taxonomy-model.php), and not by creating a new template for each and every model in the taxonomy (taxonomy-model-asa-akira.php, etc etc etc)
But, I can't think of any other way to input unique information on to each individual models page without creating a new template for each model. Right now I can pull up their photo and name by grabbing the term slug. That will work the same for each and every model. How would I go about doing something similar with, say, their twitter page, official website, etc? Many other sites have profiles for each model, usually thousands of them, how do they do that? Is there some way to lay out every page like: <div class="profile"> <div class="twitter(code to grab slug)"></div> <div class="facebook(code to grab slug)"></div> <div class="officialsite(code to grab slug)"></div> </div> And have something similar to a css file this: Twitter: .model-one {twitter.com/model-one} .model-two {twitter.com/model-two} .model-three {twitter.com/model-three} .model-four {twitter.com/model-four} Official site: .model-one {model-one.com} .model-two {model-two.com} .model-three {model-three.com} .model-four {model-four.com} Having thousands of templates for each model would be a nightmare in the event of a redesign. If anyone has any idea on how to accomplish this, or can shed some light on how the big guys manage these links and information, I'd appreciate it. ~TT |
Not on topic in regards to your template... but the content more so.
I get that this is an example.. and hey man, thanks for choosing Bryci but when you advertise our images... if you'd like to make some sales, I might suggest grabbing a code from bellacash.com to accompany the images. Perhaps a banner or two? :thumbsup The stuff you have listed is also 3 years old so not sure how well it's going to convert, you might want to try newer content. (I know, I know, an example) |
Hey! Thanks for pointing that out.
Back when I first started the site, I had a script that rotated banners underneath the galleries, that way they'd see a fresh banner for Bryci each time they visited one of her galleries. That script eventually quit working, and it appears I forgot to re add the banners manually. Sorry about that! I'll work on getting that sorted out. And yeah, the newer content will be put up eventually. I'm still kind of "finding my groove" when it comes to efficiently getting content onto the site in an organized fashion. Some things are in the works that will hopefully make that easier, so fingers crossed. I appreciate the reply. -TT |
All times are GMT -7. The time now is 07:09 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc