A short code to get all user added custom fields in WordPress:

$custom_fields = $wpdb->get_col("SELECT meta_key FROM $wpdb->postmeta GROUP BY meta_key	HAVING meta_key NOT LIKE '\_%' ORDER BY meta_key");

6 Comments on Get user added custom fields in WordPress

  1. Nice Site..Congratzz :-)

  2. For wordpress friends? unfortunately not a blog that I use wordpress, but I liked your article … :)

  3. kowandy says:

    good my friend..

  4. TehreemTariq says:

    can we add in free wordpress blog?

  5. titisari says:

    I liked your article. I hope I can learn from you

  6. Sonia says:

    Very nice article..

Leave a Reply