Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kapil Chugh

    (@kapilchugh)

    Thx a lot for your suggestion.

    Sure, we’ll integrate it ASAP.

    I just added custom fields to mine like this:

    In includes/loop.php, I changed the part from lines 38-48 (starting $str.=’ …) to this:

    $str.= '
              <tr>
                <td>' . mb_convert_encoding(get_the_title(), 'HTML-ENTITIES', 'UTF-8') . '</td>
                <td>' . mb_convert_encoding($post->post_content, 'HTML-ENTITIES', 'UTF-8') . '</td>
                <td>' . get_permalink() .'</td>
                <td>' . get_the_date('Y-m-d', '', '', FALSE) .'</td>
                <td>' . get_the_author() .'</td>
                <td>' . $all_cats . '</td>
                <td>' . $all_tags . '</td>';
    
    // post meta add
    $custom_field_keys = get_post_custom_keys(get_the_ID());
    foreach ( $custom_field_keys as $key => $value ) {
    	$valuet = trim($value);
    	if ( '_' == $valuet{0} )
        continue;
        $str .= '<td>'.mb_convert_encoding(get_post_meta($post->ID,$value,true),'HTML-ENTITIES', 'UTF-8').'</td>';
    }	
    
            $str .='
              	</tr>';

    Seems to work. Thanks for the plugin!

    Hi there,

    Any plans to add custom field support anytime soon?

    Cheers,
    Thomas

    Plugin Author Kapil Chugh

    (@kapilchugh)

    Not sure right now 🙁

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Export to Excel] Export Custon Fields’ is closed to new replies.