Support » Themes and Templates » Removing the parentheses that display around the 'read more' link.

  • Resolved johnrpowell


    I’m noticing a discrepancy between what the codex states regarding the default display of the <!--more--> tag and what I’m seeing my WordPress install (v3.01) display. According to the codex, the default is supposed to be a ‘more…’ link immediately following the end of the truncated content. What actually displays is ‘(more…)’. If I specify custom text for the more link in the_content(), the custom text is also bookended by parentheses. None of the articles regarding customized formatting of the more link mention anything about these parentheses or how to remove them. Any help would be greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    This could be something that is being added by your current theme. By default, using something like <?php the_content('Here is the rest of the story');?> should just produce:

    post teaser text. Here is the rest of the story.

    No parentheses.

    If I replace that portion of the index.php file with any other content, no parentheses appear; there’s nothing in the custom theme’s styles or HTML inserting extra parentheses characters.

    This is how I’m currently placing the post’s content into my theme…

    <p class="story"><?php the_content(); ?></p>

    In order to remove the default <p> tags that are inserted around the content, I have this placed near the top of the index.php document…

    <?php remove_filter ('the_content', 'wpautop'); ?>

    The <!--more--> tag yields this as the default more tag at the end of the post’s content…


    If I change it to the following…

    <p class="story"><?php the_content('...'); ?></p>

    I get this…


    There are no extra parentheses inserted around php hook in my php/html.



    Forum Moderator

    What you’re seeing is the default more text. I’m not sure I understand the problem here…

    This is what the codex has to say about the default format of the <!--more--> tag:

    It clearly states that the default rendering of the <!--more--> does not include the extra parentheses that I’m seeing appear.

    Nevermind…problem solved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing the parentheses that display around the 'read more' link.’ is closed to new replies.