Tag Info

New answers tagged

0

Adding to my comment on the accepted answer you should do this as well otherwise they can just change it on their profile page which defeats the purpose of the other functions. You can even go ahead and house the field with jQuery .hide or css. function disable_html_editor_update() { global $wpdb; $wpdb->query("UPDATE" . $wpdb->prefix . ...


0

This requires two steps: 1) First, we need to hide the editor tabs, which can be accomplished easily enough using CSS. We'll output some CSS to the admin head to do that: function hide_editor_tabs() { global $pagenow; // Only output the CSS if we're on the edit post or add new post screens. if ( ! ( 'post.php' == $pagenow || 'post-new.php' == ...


0

Thanks for the solution, Bainternet. It was pulling in multiple posts from the default post type as RodeoRamsay reported, so I got it to work with my custom post type like so: <?php define('WP_USE_THEMES', false); //echo "<h1>printer friendly version:</h1>\n"; setup_postdata($_GET['pid']); while ( have_posts() ) : the_post(); ...


1

This seems to do it: function allow_nbsp_in_tinymce( $mceInit ) { $mceInit['entities'] = '160,nbsp,38,amp,60,lt,62,gt'; $mceInit['entity_encoding'] = 'named'; return $mceInit; } add_filter( 'tiny_mce_before_init', 'allow_nbsp_in_tinymce' ); Any improvement suggestions?


0

Have you thought about assigning different numbers to each of the radio buttons and have a minimum value when it returns? If it returns 0 or NULL then display a message? So youth group could be something like. YOUTH [checkbox] 5 - 8 (value 1) [checkbox] 9 - 12 (value 2) [checkbox] 12 - 16 (value 3) etc you get the point. That way if it returns 2 then ...



Top 50 recent answers are included