Cite-Tag for blockquotes

The TinyMCE Custom Styles Codex Page should get you through this. There are code snippets on that page, but, as an overview, the process requires two steps: Add the TinyMCE “styleselect” element to the first or second row of icons. Add one or more elements to that styleselect menu. If this were me, I would … Read more

Highlight Syntax Inline

If you still want to use SO-type backtick markup for styling your inline code examples, I’ve created some code that will accomplish it. To make it into your own plug-in, just add the code below to your functions.php. It calls the wordpress filter “the_content” to apply the transformation to the content when it is displayed, … Read more

How to set the default embed image size

If you add this to functions.php, this will update the options as set. function custom_image_size() { // Set default values for the upload media box update_option(‘image_default_align’, ‘center’ ); update_option(‘image_default_size’, ‘large’ ); } add_action(‘after_setup_theme’, ‘custom_image_size’); You can update the options as you need.

Replace Taxomony Description Field with Visual/WYSIWYG Editor

You can use a {$taxonomy}_edit_form_fields action hook to add html to the term edit table. In that HTML you can remove description textarea and add tinymce editor add_action(“{$taxonomy}_edit_form_fields”, ‘add_form_fields_example’, 10, 2); function add_form_fields_example($term, $taxonomy){ ?> <tr valign=”top”> <th scope=”row”>Description</th> <td> <?php wp_editor(html_entity_decode($term->description), ‘description’, array(‘media_buttons’ => false)); ?> <script> jQuery(window).ready(function(){ jQuery(‘label[for=description]’).parent().parent().remove(); }); </script> </td> </tr> <?php … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)