• Hey! I knwo it will ound silly but really I need help, I want to remove the from the beginning of all my posts..it makes my layout look ugly with a huge gap between header and the blog…what do I do? Where can I remove it ..in which file? Please help, I tried to remove all ‘s from wp-includes/template-functions-post.php but the is still there…please help. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 1. Flagged for codex

    2. Search here for ‘autop’

    Thread Starter bubbles00

    (@bubbles00)

    ok I found ‘autop’

    add_filter(‘the_excerpt’, ‘wpautop’);

    its in wp-includes/template-functions-post.php

    so what do I do with it? Should I delete that line ?

    Thread Starter bubbles00

    (@bubbles00)

    sorry its

    add_filter(‘the_content’, ‘wpautop’);

    add_filter(‘the_excerpt’, ‘wpautop’);

    at 2 places actually…

    Thread Starter bubbles00

    (@bubbles00)

    I fixed it ?? thanks! I just removed

    add_filter(‘the_content’, ‘wpautop’);

    from that file…thanks again ??

    With WordPress 1.5 i saw that the_content(); function calls
    get_the_content(); and after that calls apply_filters();

    Instead of editting (hacking) includes you can use:
    echo get_the_content() for raw post data in your
    index.php (or pages/categories etc.)
    (please correct me if i’m wrong in this)

    Can I do the same thing with custom fields?

    add_filter(‘customfieldname’, ‘wpautop’);

    Is there a similar function to add the nl2br filter?

    Wes

    I found the answer I was looking for and thought it should be noted here for future reference, Turns out that the wpautop or nl2br functions needed to be added to the getcustom plugin I was using to call custom fields. See the plugin creator’s comment post here.

    Wes

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Removing the <P> from posts…arghh!’ is closed to new replies.