• I found this below in the codex but it doesn’t seem to work with me. When I click on read more nothing happens. Where do I define where the full post can be seen after clicking the link?

    Thx

    To remove the teaser:

    Change the_content(); in your index.php to (i.e., the second parameter controls this):
    the_content(”,FALSE,”);>Include <!–noteaser–> in the post text, immediately after the <!–more–>.
    Link Jumps to More or Top of Page
    By default, when you click on the Read More link, the web page loads and then “jumps” to the spot where the <–more–> tag is set in the post. If you do not want that “jump”, you can change the default function of how this works by editing the following line in wp-includes/template-functions-post.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • Where do I define where the full post can be seen after clicking the link?

    You don’t need to define it. WordPress does that automatically if:

    1. The relevant template file in your theme uses the_content() tag and you insert the <!-- more --> tag into your post.

    OR

    2. The relevant template file in your theme uses the_excerpt() tag – in which case you don’t need to do anything.

    Thread Starter junem0

    (@junem0)

    Since it’s about a single post I checked the post template which has this:

    <p><?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>

    Following the WP codex I also checked the index.php which had this:

    <p><?php the_content(‘Continue Reading…”FALSE”); ?>

    I added the FALSE here. So I think it should work but it doesn’t…
    When I put the <!– more –> tag in the post I see ‘continue reading…’
    What’s between () in the single post php means something else. Maybe it’s because of the theme I use? The comment link doesn’t work eihter when I click on the link to add one. It only works on preview posts b4 published.

    Wait. You’re trying to do read more when viewing a Single Post?
    That won’t work. I mean, the single post view is to show the post, why would you do a “more” there?

    Or am I misunderstanding?

    If you’re trying to split a single post into multiple pages, you might instead try the <!--nextpage--> tag instead. You can learn more at http://codex.ww.wp.xz.cn/Styling_Page-Links

    Thread Starter junem0

    (@junem0)

    Maybe I misread the guide. But why I would do it? If someone browses a particulare category that has 3 articles they won’t know unless they read the article on top and scrol down. I would make just a small exerpt visible of every article and on clicking ‘more’ the rest would drop down. If i think about it now it seems it’s just unnecessary as there are other ways. I can put link to all articles on top in the one category section or I can list them in the sidebar. Which I already do.

    To me this scrolling down thing is very annoying. It makes everything so invisible. But I’ll check your link because a ‘next page’ possibility would make that easier.

    THanks Chris.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Customising Read More’ is closed to new replies.