In my twenty ten child theme I have some information for each post displayed using Custom Fields. These are things like date of composition or length of a piece, etc.
I pull them on the category archive page using template function
<?php the_meta(); ?>placed in the loop just under the post title. Works absolutely fine.
This function for each custom field pulls its key and corresponding value.
I have 4 custom fields for each post. Lets call them A, B, C, D.
When they are displayed they are unsorted:
or whatever. I am not able to determine what sorting it is.
I am looking for a solution to have them alphabetically sorted so the list looks like that:
A: value a
B: value b
C: value c
Is it a piece of code I should enter in the () brackets of the
Any help will be much appreciated.
- The topic ‘alphabetize custom fields the_meta’ is closed to new replies.