roothost Posted March 15, 2012 Share Posted March 15, 2012 I am having a right nightmare today! Created some custom taxonomies and have them outputting on a page like this; <?php if (get_the_terms($post->ID, 'esca')) { $taxonomy_ar = get_the_terms($post->ID, 'esca'); $output = '<ul>'; foreach ($taxonomy_ar as $taxonomy_term) { $output .= '<li>'. $taxonomy_term->name .'</li>'; } $output .= '</ul>'; echo $output; } ?> Problem being that after they appear to be displaying in either numerical or alphabetical order, and not in the order that I add them from the WP dashboard. Anybody have any clever or obvious answers?? Link to comment Share on other sites More sharing options...
roothost Posted March 15, 2012 Author Share Posted March 15, 2012 Cough Cough Link to comment Share on other sites More sharing options...
user-removed Posted March 15, 2012 Share Posted March 15, 2012 As far as I'm aware, by default they order by publication date. There must be something in your theme or setup that is changing this default behaviour. Checked your functions.php? Tried removing it? Tried the script on Twenty11? Link to comment Share on other sites More sharing options...
roothost Posted March 15, 2012 Author Share Posted March 15, 2012 Yup, tried that. Tried a clean install of wp on anew domain using twenty11. It seems the default is to display in alphabetical order Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now