Jump to content

WordPress Custom Taxonomy Output


Recommended Posts

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?? :aggressive:

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing

    • No registered users viewing this page.
  • Member Statistics

    • Total Members
      64,982
    • Most Online
      4,970

    Newest Member
    Refotre
    Joined
  • Forum Statistics

    • Total Topics
      67.5k
    • Total Posts
      461k
×
×
  • Create New...