• Hi there.

    First of alle, great plugin – it has almost gotten me where I need to go, but theres one thing missing.

    This is for a client, that’s supposed to be able to add galleries displaying various pics from recent works.

    This is what has gotten me closest so far.

    add_filter( 'default_content', 'my_editor_content' );
    
    function my_editor_content( $content ) {
    	global $post_type;
        if ( 'post' == $post_type ) {
    		$content = '[gallery]';
    		return $content;
    	}
    }

    The idea is to hide the entire editor by css, so that my client simply adds a feat.img., a title and uploads some attachments for the gallery before hitting save.

    It’s works in the backend, but after studying the plugin i see that you’ve used:
    <?php wp_editor( $description,

    instead of

    <?php wp_editor( $content,

    But even after editing the wpuf-add-post.php to call for content it won’t show.

    Could someone please help me figure this out?

    https://www.ads-software.com/plugins/wp-user-frontend/

  • The topic ‘Making default_content work’ is closed to new replies.