Posting image galleries to bbpress posts?
-
Lots of searching haven’t found a way to do this yet. Only the short-code is being displayed.
I do have TinyMCE Advanced & “Add Media” button working in bbpress however.
I’m using the latest stables versions of both bbpress & wordpress.
I do know there are a couple of plugins built to do this would prefer not to go that route though.Any ideas? =-/
URL: https://n.umero.us/forums/topic/vvcvcv/
Code I put in functions.php for TinyMCE Advanced & “Add Media” & a couple other things..
function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['teeny'] = false; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' ); function bbp_tinymce_paste_plain_text( $plugins = array() ) { $plugins[] = 'paste'; return $plugins; } add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' ); add_filter( 'bbp_after_get_the_content_parse_args', 'bavotasan_bbpress_upload_media' ); /** * Allow upload media in bbPress * * This function is attached to the 'bbp_after_get_the_content_parse_args' filter hook. */ function bavotasan_bbpress_upload_media( $args ) { $args['media_buttons'] = true; return $args; } add_action( 'after_setup_theme', 'default_attachment_display_settings' ); /** * Set the Attachment Display Settings "Link To" default to "none" * * This function is attached to the 'after_setup_theme' action hook. */ function default_attachment_display_settings() { update_option( 'image_default_align', 'left' ); update_option( 'image_default_link_type', 'post' ); update_option( 'image_default_size', 'thumbnail' ); }
- The topic ‘Posting image galleries to bbpress posts?’ is closed to new replies.