Template tag, the_meta , has no parameters currently.
http://codex.wordpress.org/Template_Tags/the_meta
Can someone help make a plugin to add a parameter so that the_meta can EXCLUDE a particular Key-Value?
It could be something like, php the_meta(exclude="Small-image")
Or make a plugin with a new function like, php the_meta_excluding
REASONING AND EXAMPLE:
the_meta will display all the custom fields on a post. It will display them as Key - Value pairs. For example I could make my post display:
- My Mood: Happy
- The Weather Is: Sunshine
- The song of the day is: "You Are My Sunshine"
- Small-image: http://mysite.com/wordpress/wp-content/november-sun.jpg
- More private code that I do not want everyone to see: kj1lh6iubtu143bt162g
In my example I want the_meta to show all the custom fields EXCEPT for "small-image" and "More private code that I do not want everyone to see".
How to do this?
I also submitted this in WP Ideas,
http://wordpress.org/extend/ideas/topic.php?id=2012