Fronted order for taxonomies
-
Hi,
I need the feature to show, on frontend, taxonomies in the order as I selected in the backend.<?php $terms_cert = get_the_terms($post->ID, 'certificazione'); //echo '<span class="tagged_as"><label>Certificazioni:</label>'; foreach ($terms_cert as $cert) { $cert_link = get_term_link($cert, 'certificazione'); if (is_wp_error($cert_link)) continue; $cert_products .= '<a target="_blank" href="' . $cert_link . '"> ' . $cert->name . '</a>, '; } $cert_show = substr(trim($cert_products) , 0, -1); echo ! empty( $cert_show ) ? '<span class="tagged_as"><label>Certificazioni:</label>' . $cert_show : ''; echo '</span>'; ?>
This is the code to show the taxonomy on frontend on meta.php, but in whatever order I select them on frontend, it always shows them ordered by name.
How I can order the in the other mode? Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Fronted order for taxonomies’ is closed to new replies.