Monthly Archive: January 2016

0

WordPress Function to New Media Library Column to Re-Attach Images

New Media Library Column to Re-Attach Images This code adds a new column to the Media Library Page allowing you to re-attach images add_filter(“manage_upload_columns”, ‘upload_columns’); add_action(“manage_media_custom_column”, ‘media_custom_columns’, 0, 2); function upload_columns($columns) { unset($columns[‘parent’]); $columns[‘better_parent’]...

0

WordPress Function to Themed custom loop using shortcodes

Themed custom loop using shortcodes Arguments are the same as the ones from query_posts. The content wrapped between the query tag is the template. add_shortcode(‘query’, ‘shortcode_query’); function shortcode_query($atts, $content){ extract(shortcode_atts(array( // a few default...

0

WordPress Function to Set Editor Defaults to WYSIWYG or HTML

Set Editor Defaults to WYSIWYG or HTML function my_default_editor() { $r = ‘tinymce’; // html or tinymce return $r; } add_filter( ‘wp_default_editor’, ‘my_default_editor’ ); Here is how to remove the HTML Editor jQuery(document).ready(function($) {...

0

WordPress Function to Fixed: Remove Default WordPress Meta Boxes

Fixed: Remove Default WordPress Meta Boxes This was very handy but had some errors // REMOVE META BOXES FROM DEFAULT POSTS SCREEN function remove_default_post_screen_metaboxes() { remove_meta_box( ‘postcustom’,’post’,’normal’ ); // Custom Fields Metabox remove_meta_box( ‘postexcerpt’,’post’,’normal’...