I am currently displaying a post tags in a sidebar, using the PHP Code widget and the following snippet:
if ( is_singular() ) : echo get_the_tag_list( '<div class="my-button-list" id="my-tags-list"><ul><li>', '</li><li>', '</li></ul></div>', get_queried_object_id() ); endif;
Currently, these tags are ordered alphabetically; what I would like to do is maintain the order in which they are entered in the backend. I tried the approach that was suggested here for
the_tags, but to no avail.
Any help with finding a similar or suggested approach would be much appreciated!