• Resolved seedpxwee5

    (@seedpxwee5)


    I’m currently using
    <div class="entry"><?php the_content('<br />Continue Reading &raquo; ' . get_the_title('', '', false)); ?>

    To display my main content.
    The content will show up like

    This is a part of the more content
    Continue Reading >> TITLE of the post

    What should I do if I want to add […] behind the content? To make it

    This is a part of the more content […]
    Continue Reading >> TITLE of the post

    I tried
    <div class="entry"><?php the_content('[...]<br />Continue Reading &raquo; ' . get_the_title('', '', false)); ?>

    It doesnt work because the dots are linked as well. I want the dots not linked to anywhere.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I tried this but it’s still a part of the link.
    <div class="entry"><?php the_content('<span class="more"><br />Continue Reading &raquo;</span> ' . get_the_title('', '', false)); ?>

    In style.css:
    .more{content:'\5B...\5D';}

    So I’m guessing the only way is to type the […] just before you insert <!–more–> in your post.

    Correction:
    .more:before{content:'\5B...\5D';}

    Thread Starter seedpxwee5

    (@seedpxwee5)

    NVM got it …
    Edit the post_template at wp_includes

    find
    $output .= $teaser

    Change to
    $output .= $teaser . '[...]';

    Well, remember to change that every time you upgrade WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘the_content() and more tag’ is closed to new replies.