• Hey everyone,

    I am trying to remove the p tags that wordpress automatically adds to content. I am using a plugin called multiple content blocks and would only like to remove the p tags from that. When I instert <?php remove_filter ('the_block', 'wpautop'); ?> I still get paragraph tags around that content. Any suggestions?

    <?php
    /*
    Template Name: Portfolio Page
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="right-column">
    
        <div id="display">
    
                <table>
    
                    <tr>
    
                        <td>
                            <div id="project-info">
    
                                <h3>Project Info:</h3>
    
                                <p><span class="desc-bold">Client:</span> <?php wp_title(''); ?></p>
    
                                <p><span class="desc-bold">Skills Used:</span> <?php the_block('skills'); ?></p>
    
                                <p><span class="desc-bold">Project Description:</span><br /><?php the_block('description'); ?></p>
                            </div>
    
                        </td>
    
                            <?php query_posts('tag=Cohassett'); ?>
    
                            <?php while (have_posts()) : the_post(); ?>
    
                                <td>
                                    <?php the_content(); ?>
                                </td>
    
                            <?php endwhile; ?>
    
                    </tr>
    
                </table>
    
    	</div>
    
    </div>
    
    <?php get_footer(); ?>
  • The topic ‘not having any luck with remove_filter’ is closed to new replies.