Support » Fixing WordPress » how to display teaser only?

  • Normally I like to go through the documents before asking, but somehow my ISP cannot access the codex support site, so please bear with me if I’m asking the obvious.

    Here is the code I’m using on the sidebar template:


    '<?php'
    '$my_posts = get_posts('category=2&numberposts=1&offset=0');'
    'foreach ($my_posts as $post) :'
    'start_wp();'
    '?>'
    '

  • '
    '<h2>Current Issue: <?php the_title() ?></h2>'
    '<?php the_content('more »'); ?>'
    '
  • '
    '<?php'
    'endforeach;'
    '?>'

    This does exactly what I want on the index page. However, the sidebar displays the full text instead of the teaser on the single pages. How should I code the sidebar to only display the teaser (plus a more link) on the single pages as well? Site in question:

    http://www.jds-online.com/

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to display teaser only?’ is closed to new replies.