Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: how to add images to content pleaaaaaase answer

create a file in your my-plugins directory called my images or something like that.

add the following code

<?php
/*
Plugin Name: My Images
Plugin URI: https://bbpress.org/
Description: Allows <img /> tags to be used in forums.
*/

add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
function allow_images_allowed_tags( $tags ) {$tags['img'] = array('src' => array(), 'title' => array(), 'alt' => array(), 'class' => array()); return $tags; }
add_filter( 'get_profile_info_keys','bb_member_id_in_profile',255);
function bb_member_id_in_profile($keys) {
global $self;
if (empty($self)==true && isset($_GET['tab'])==false && bb_get_location()=="profile-page") {
(array) $keys=array_merge(array_slice((array) $keys, 0 , 1), array('ID' => array(0, __('Member #'))), array_slice((array) $keys, 1));
}
return (array) $keys;
}
?>

Activate the plug in & all should work as long as you use

<img src="" alt="" title="" class="" />

Skip to toolbar