WordPress

Howto: Modify block format options dropdown in WordPress (TinyMCE)

There is an easy way to modify the block format options dropdown in the WordPress editor. Simply add those lines to your theme’s¬†functions.php (wp-content/themes/{name}/functions.php) and modify the list according to your needs: function extend_tiny_mce_defaults ($config)¬†{ // comma separated list of any block-level HTML tag $config[‘theme_advanced_blockformats’] = ‘p,h3,h4,pre,address’; return $config; } add_filter(‘tiny_mce_before_init’, ‘extend_tiny_mce_defaults’, 100);

Switched from Drupal 5 to WordPress 2.5

After having trouble with the Drupal upgrade I decided to give WordPress a try. The funny thing is to copy the existing posts to the new tables. If you got the same problem, you can use this view: CREATE VIEW wp_import AS SELECT a.nid AS ID, 1 AS post_author, FROM_UNIXTIME(a.created) AS post_date, FROM_UNIXTIME(a.created) AS post_date_gmt,…
Read more