WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
[resolved] Can't edit Custom Fields on Custom Post Type (7 posts)

  1. ferpintado
    Member
    Posted 2 years ago #

    Hi, I've create somes custom post type and I need edit in the front end some field from this Custom Post type and I can't. Anyone can help me?

    http://wordpress.org/extend/plugins/front-end-editor/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    You can't, as in you don't know how to make custom fields editable or that it doesn't work?

  3. ferpintado
    Member
    Posted 2 years ago #

    Thanks a lot, I had no read this, sorry.
    One question more, only the admin can edit the posts? or another user can?

    Thanks, again.

  4. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Everyone with the appropriate capabilities can edit posts. It depends on how you configure your post type.

  5. Waide
    Member
    Posted 2 years ago #

    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

  6. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    You're doing two things wrong here:

    1) Posting in an unrelated thread, instead of opening a new one.
    2) Posting the issue on github and then after only 15 minutes posting it again. This is not ok.

    I've already replied on github:

    https://github.com/scribu/wp-front-end-editor/issues/72

    Please be more patient next time.

  7. Waide
    Member
    Posted 2 years ago #

    Scribu,

    Apologies.... I was uncertain if my post on github worked. thank you for the quick reply!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic