Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119318

pzula on "[Plugin: Custom Content Type Manager] Need to disable wpautop for my ecpt fields"

$
0
0

I need to disable wpautop for my ecpt-created rich text editor because it is adding <p> tags around my shortcodes and (I think) making my shortcodes not work. (I have already tried adding do_shortcode but I do see that the editor is adding <p tags around my content, so I think this is a multi-layer problem).

Do anyone know how to disable wpautop? This is the code I have so far:

<?php $leftsidebar = get_post_meta($post->ID, 'ecpt_left_side', true); ?>
			  <?php if ($leftsidecontent != NULL) { ?>
			<div class="TwocolLeft">
				<?php echo $leftsidecontent; ?>

				<?php echo do_shortcode($leftsidecontent); ?>

			</div>
			<div class="TwocolRight">

				<?php the_content(); ?>

			</div>
			<?php } else { ?>

				<?php the_content(); ?>

			<?php } ?>

http://wordpress.org/extend/plugins/custom-content-type-manager/


Viewing all articles
Browse latest Browse all 119318

Trending Articles