WordPress.org

Support

Support » How-To and Troubleshooting » How to: Author profile meta as custom field

How to: Author profile meta as custom field

  • I like to automatically create custom field from the author profile meta

    Actually I am trying to use themeperpost for WP 3.1

    function add_custom_field_automatically($post_ID) {
    	global $wpdb;
    	if(!wp_is_post_revision($post_ID)) {
    $themename = get_the_author_meta('themeperauthor', $user->ID);
    		add_post_meta($post_ID, 'themeperauthor', $themename, true);
    	}
    }

    #Presently Custom field name is created but without the value.
    #available/show only for the default post type ‘POST’

    I want it for a specific post type call weblogs

    If this is resolved an advance plugin themeperauthor will be born.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to: Author profile meta as custom field’ is closed to new replies.
Skip to toolbar