HTML5 Summary tag in editor

You can use the $allowed_tags global. Add the following to your functions.php file. global $allowedtags; $allowedtags[‘summary’] = array(‘class’ => array()); Add more attributes within the array similar to the class element. You can learn more on Otto’s post here:

How do I add php to all links automatically?

Inserting PHP is not really the way you want to do this. You would then need additional code to execute the PHP in the post body. It could be complicated. Replace the links using a filter on the_content. Something like this: function replace_urls_wpse_91463($matches) { $ret=”<a”; if (isset($matches[1])) { $ret .= $matches[1]; } if (isset($matches[2])) { … Read more

WYSIWYG with HTML source?

Why not automate the move from Drupal to WP? I think WP will fix some of the P tag issue during the upload. http://codex.wordpress.org/Importing_Content#Drupal If that isn’t an option, I think WP is using br’s instead of full new p. From the visual editor, I’d delete the copied break altogether and “enter” a new one.

WordPress page editor for clients, opinions needed

It is the theme author’s responsibility to give an admin interface that will allow the client to create the content in the form he wants. Layout related options and shortcodes are just a way for the author to justify doing a poor job in understanding the client’s needs and helping the client to easily manage … Read more

WordPress adding extra html coding to my data on saving

IT turned out to be less hassle to just recreate my plugin using the latest and greatest code available here: https://github.com/helgatheviking/WP-Alchemy-Holy-Grail-Theme And it also turned out to have something to do with the filter being applied to the editor. This: <?php echo esc_html( wp_richedit_pre($mb->get_the_value()) ); ?> was the problem, replacing it ultimately with this solved … Read more