Wrapping Featured Image on Add/Edit Page in div?

When you post this question @PontusAbrahamsson answered you with a good function: function wpse_111428_change_feature_image_admin( $content ) { global $post; $size = 100; $id = get_post_meta( $post->ID, ‘_thumbnail_id’, true ); if( $id ) { return wp_get_attachment_link( $id, array( $size, $size ) ); } } add_filter( ‘admin_post_thumbnail_html’, ‘wpse_111428_change_feature_image_admin’ ); just replace it with a modded version that … Read more

Tag selection while adding new post

Just copy paste the following code in your functions.php file which will add some css code in your WordPress back end which will hide the text box and add button of tags meta box to prevent user adding new tags. add_action(‘admin_head’, ‘custom_css’); function custom_css() { echo ‘<style> #tagsdiv-post_tag .howto, #tagsdiv-post_tag .tagadd, #tagsdiv-post_tag #new-tag-post_tag{ display: none; … Read more

Share WordPress Database

Does the WordPress installation has to use an exclusive database? If there are no table name conflicts, WordPress can share a database. Preventing conflicts is just a matter of setting a database prefix on install. By default, that prefix is wp_ but you can change it to anything you want within reasonable character limits. It … Read more