WordPress.org

Support

Support » Plugins and Hacks » Co-Authors Plus » [Plugin: Co-Authors Plus] Artisteer and Co-Authors plus

[Plugin: Co-Authors Plus] Artisteer and Co-Authors plus

  • I can’t figure out how to use this with an Artisteer generated template, in as much as I have no idea how to edit the generated code to make it display multiple authors. The closest I got was to get rid of the authors altogether. The site is – http://cravings.tw

    This appears to be the correct code to edit, but nothing I change seems to have any effect

    if (!function_exists('get_the_author_meta')) {
    	function get_the_author_meta($field = '', $user_id = false) {
    		if (!user_id) {
    			global $authordata;
    		} else {
    			$authordata = get_userdata($user_id);
    		}
    
    		$field = strtolower($field);
    		$user_field = 'user_' . $field;
    
    		if ( 'id' == $field ) {
    			$value = isset($authordata->ID) ? (int) $authordata->ID : 0;
    		} elseif (isset($authordata->$user_field)) {
    			$value = $authordata->$user_field;
    		} else {
    			$value = isset($authordata->$field) ? $authordate->$field : '';
    		}
    
    		return apply_filters('get_the_author_' . $field, $value, $user_id);

    Cheers

    http://wordpress.org/extend/plugins/co-authors-plus/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Co-Authors Plus] Artisteer and Co-Authors plus’ is closed to new replies.
Skip to toolbar