Tag Info

New answers tagged


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(); ...


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?


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 ...


This is not a direct answer to your question but if you have the option, I would restructure the shortcode so that it takes one or more attributes that you then plug in to the correct JSON format. e.g.: [myshortcode zoom="5"] This would not only prevent your site editors from making syntax mistakes (or at least they'd make different ones!) but would ...

Top 50 recent answers are included