↧
Get user added custom fields in WordPress
A short code to get all user added custom fields in WordPress: <?php $custom_fields = $wpdb->get_col("SELECT meta_key FROM $wpdb->postmeta GROUP BY meta_key HAVING meta_key NOT LIKE '\_%'...
View ArticleGet values of a custom field belonging to the category or tag posts in WordPress
This is an example how to get the values of a custom field belonging to the category or tag posts in WordPress: <?php function get_custom_field_values($custom_field,$term_id){ global $wpdb; $query...
View Article