Forums

Shortening my posts to show as previews (7 posts)

  1. OneKoreanGuy
    Member
    Posted 2 years ago #

    Hi, as you can see on my site, the theme I am using did not provide shortening the reviews on the main page to allow previews and whatnot. It shows the WHOLE article!

    What is the code to show previews? (or rather, to cut out the whole post).

    As you can see, it's a blog, so I would need a code to show the preview of the POST.

    Thanks in advance.

    Also, how can I add a counter to show how many posts I have for the month by the "Archives" side bar?

  2. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    1. Replace the_content() on the index.php file in your current theme with the_excerpt().

    2. '<?php wp_get_archives('show_post_count=1'); ?> '

  3. OneKoreanGuy
    Member
    Posted 2 years ago #

    1. I got a Fatal Error:
    Fatal error: Call to undefined function the_exerpt()

    2. It worked, thanks.

    here's the full code for the_content
    <?php the_content(''.__('Read More <span class="meta-nav">»</span>', 'sandbox').''); ?>

    <?php wp_link_pages('before=<div class="page-link">' .__('Pages:', 'sandbox') . '&after=</div>') ?>
    <?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<span class=\"edit-link\">", "</span>"); ?>
    </div>

    </div><!-- .post -->

  4. Zulfikar
    Member
    Posted 2 years ago #

    Use the Post Teaser plugin from http://wordpress.org/extend/plugins/post-teaser/

  5. fusionpowered
    Member
    Posted 2 years ago #

    did you put a 'more' tag in your post?

  6. alchymyth
    The Sweeper
    Posted 2 years ago #

    1.
    watch the spelling!

    the_excerpt()

  7. mspatel724
    Member
    Posted 2 years ago #

    had same exact problem with http://fudgecake.org

Topic Closed

This topic has been closed to new replies.

About this Topic