• doubledown11

    (@doubledown11)


    Hi, I’ve tried playing with some code to achieve this, but it resulted in errors.

    I would like to display 1 or 2 articles with the ‘read more’ link after, say, 1 paragraph. Currently through the settings I have 1 article on the front page, but it displays the whole article. How can I make it preview instead?

    thanks for your help and patience with a noob

    dd

Viewing 4 replies - 1 through 4 (of 4 total)
  • You could add the first paragraph to the excerpt option in the edit post form.

    Then, in your template, try

    the_excerpt()
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permalink to'); ?> <?php the_title(); ?>">Read More...</a>

    I should add, this code should replace the_content()

    Thread Starter doubledown11

    (@doubledown11)

    thank you rj, that worked.

    Is there a plug in that does this for us? Is there an option that just shows part of the article and then forces you to click on read more to see the whole article without you having to manually seperate it into different boxes?

    there is the ‘more’ button in the admin editor, for instance.
    and the manual excerpt box under the editor window.
    or the_excerpt() function.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Short preview of 1 or 2 articles on front page?’ is closed to new replies.