Help with creating a custom field plugin
-
Hi!
I’m a total noob when it comes to certain things regarding WP. However, I’d really like to see some new features that would make my use of WP a dream.I’m trying to create a WP plugin that displays custom fields, without the need of any extra code in the loop. Can somebody please help me with this?
I need a plugin for displaying data since I’m working on a site that needs data to be displayed easily.
So far this is how my code looks:
function post_meta_display($custom_fields) { global $post; $custom_fields = ''; $key = array(); $value = array(); $custom_fields = the_meta(); } add_filter('the_content', 'post_meta_display');
This seems to work with displaying the data, but it broke all the images from other posts. That’s why I need help. I don’t know a thing about how parameters work. The code above is inspired by the plugin “taxonomy terms list” and some stuff from the arras theme.
Can somebody please help me in the right direction, please?
Thanks!
- The topic ‘Help with creating a custom field plugin’ is closed to new replies.