WYSIWYG editor not in a post editor?
Yep! Check out wp_editor(). It was a one of the big new features in WP 3.3.
Yep! Check out wp_editor(). It was a one of the big new features in WP 3.3.
You would need to add a metabox and then add the wp_editor as a field. You’ll then need to process/save the meta data before you ever get to the part where display the data. I just did this this morning with the Types plugin, which is about the easiest thing that I’ve found. (Advanced Custom … Read more
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:
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
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.
How do you keep the default WYSIWYG active when using a custom template?
Under ATTACHMENT DISPLAY SETTINGS > Size > Select Full Size from the drop down menu.
How about the theme_advanced_disable option (link)? tinyMCE.init({ … theme_advanced_disable : “bold,italic” });
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
PHP (unlike HTML) is not meant to be used as content markup language. It is server–side language with too much access. It is very challenging to safely and securely treat PHP as part of content. For basic example — what if one of your authors writes PHP code in a post which amounts to “make … Read more