Tags grouped
-
Hi. Maybe anyone can help me out on this.
I am building a car dealer website and within it i have embedded TAG groups with the following groups (all examples):
A. Interior
B. Exterior
C. Security
D. Infotainment
C. Other
Then i linked features to the right TAG group.
1. aloy wheels (B)
2. Airco (A)
3. Park Distance Control (C)
4. S-line exterior (B)etc. etc.
When i add a new car i add the features for this car.For example 1 and 4, so i get a Tag group tabbed display.I use the following code to show the relevant taxonomy
<?php if (get_the_terms($post->ID, ‘features’)) { $taxonomy = get_the_terms($post->ID, ‘features’);
foreach ($taxonomy as $taxonomy_term) {
?>- <?php echo $taxonomy_term->name;?>
<?php }
}
?>I used the example php code but now it shows all tags and tag groups without the filter for only the features of the chosen car. How can i change the code to get it filtered?
THX Freek
- The topic ‘Tags grouped’ is closed to new replies.