Use a textarea for a custom post type

You forgot to add name =”bizdesc” to your textarea, so this function DrawCallBack($post) { $Record = GetDBRecord(); echo ‘<textarea id=”bizdesc” rows=”2″ cols=”50″>’; echo $Record[‘BizDescp’]; echo ‘</textarea>’; echo ‘<input type=text id=”YourName” name=”YourName” value=”‘ .$Record[‘Name’] .'”/>’ } should be function DrawCallBack( $post ) { $Record = GetDBRecord(); echo ‘<textarea name=”bizdesc” id=”bizdesc” rows=”2″ cols=”50″>’; echo esc_textarea( $Record[‘BizDescp’] ); … Read more

wp_enqueue_style built in styles

I’m a little confused by your question, can you not simply use wp_enqueue_style, which you actually wrote into this threads heading(not sure if you know the function exists or not). wp_enqueue_style works in the same way as the wp_enqueue_script counterpart, but of course as you’d expect, enqueues stylesheets.. Here’s a list of the enqueues i … Read more

Check if on Custom Post Type for TinyMCE buttons

If you followed that tutorial you linked then look at the function that registers the buttons: function mylink_button() { if ( ! current_user_can(‘edit_posts’) && ! current_user_can(‘edit_pages’){ return; } if ( get_user_option(‘rich_editing’) == ‘true’ ) { add_filter( ‘mce_external_plugins’, ‘add_plugin’ ); add_filter( ‘mce_buttons’, ‘register_button’ ); } } and you change it a bit to check for the … Read more