Customize WordPress WYSIWYG Editor

The default editor is set to always generate xHTML 1.0 and thus not all tags are allowed; a classic example are iframes, which you use for Google Map for example. Sure there are other approaches via short code, etc., but this is not the today topic. Merely as an example, allowing the tag <span class="pln">iframe</span>, with various attributes, and the Tags must be added to the variable <span class="pln">$ext</span>.

function fb_change_mce_options($initArray) {
	// Comma separated string od extendes tags
	// Command separated string of extended elements
	$ext = 'pre[id|name|class|style],iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|marginwidth|src]';

	if ( isset( $initArray['extended_valid_elements'] ) ) {
		$initArray['extended_valid_elements'] .= ',' . $ext;
	} else {
		$initArray['extended_valid_elements'] = $ext;
	}
	// maybe; set tiny paramter verify_html
	//$initArray['verify_html'] = false;

	return $initArray;
}
add_filter('tiny_mce_before_init', 'fb_change_mce_options');

 

wp ultimate csv importer

It is much easy now even for newbies to import any csv file as any wordpress post type and associated fields by simple mapping feature. Now import any CSV file as thousands of post, page and custom post types.

WordPress Tinypass

Tinypass is a simple, powerful plugin that allows any online publisher to easily sell access to any type of content, whether it’s a blog post, a site subscription, a digital download, or even a pay-per-view video. Tinypass can accept payments as small as 2 cents ($0.02), supports 24 currencies, and doesn’t require changing your site’s existing structure or layout. We make it easy to charge for content!