Scribu, your plugin is awesome! I do however have an issue I have been struggling with for a while now and can’t seem to find any supporting docs for this. Would you be so kind as to look over this code and tell my why I cant seem to get the editable fields to be placed in the correct span….
function elist_display_additional_info(){
global $post;
$custom_options = get_option( 'elist_custom_options' );
$custom_options_order = get_option( 'elist_custom_options_order' );
$output = '';
if ( $custom_options_order['et_custom_options'] ){
foreach ( $custom_options_order['et_custom_options'] as $custom_option_title ){
$cf = get_post_meta( $post->ID, '_et_cf_' . $custom_option_title, true );
if ( '' != $cf ){
$cf = editable_post_meta( get_the_ID(), '_et_cf_' . $custom_option_title, 'input' );
$output .= '<div class="elist_cf">';
$output .= '<h3>' . esc_html( $custom_options[$custom_option_title]['title'] ) . ':' . '</h3>';
$output .= wpautop( wp_kses_post( $cf ) );
$output .= '</div> <!-- end .elist_cf -->';
}
}
}
$output = apply_filters( 'elist_additional_info', $output );
if ( '' != $output ) { ?>
<div class="hr"></div>
<section id="listing_info">
<h1><?php esc_html_e( 'Additional Info', 'eList' ); ?></h1>
<?php echo $output; ?>
</section>
When the user logs in they are able to edit the post just fine… however I cant get the additional information section of the site to be editable.
Thanks for your help