• With the lastest of phpnuke they have this cool feature which allow us to split the post into parts, Short Description and Body Content. The short Description will be shown on the frontpage and Body Content is hidden but the whole article will be shown after visitor click on the Title. I want to display 10 posts on the frontpage and the articles are too long so I think to make in this way would be wise and neat. Anyone could help me would be appreciated it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can do this in WordPress easily. Simply use the “More” tag.

    If you are using the WYSIWYG editor in 2.0, it will appear as a vertical rectangle with a split in it.

    If you are not using the editor, it is a box that says “more”.

    You can put the “more” tag wherever you want, which allows you to easily control post length.

    Hope this helps.

    Another way of doing it is to replace the the_content tag in your index.php template file with the_excerpt – and it will make it for you automatically.

    In this case if you leave the Excerpt field empty when creating the post -> WP will take the first 200 words and use it as an excerpt.
    If you fill the Excerpt field (when writing the post) you can have a different intro/headline/short_description – which will NOT appear when seeing the whole post on its own page.
    HTH – if not, post back.

    Thread Starter WWW

    (@www)

    monkeypup, I just have installed the latest WP version and haven’t instaled hacks in yet but didn’t see the More option that you said 🙁

    Moderator, the_excerpt doesn’t exist so can you edit this index.php please

    <?php get_header(); ?>

    <div id=”main”>

    <div id=”content”>

    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    <div class=”post”>

    <?php require(‘post.php’); ?>

    <?php comments_template(); // Get wp-comments.php template ?>

    </div>

    <?php endforeach; else: ?>

    <?php _e(‘Sorry, no posts matched your criteria.’); ?>

    <?php endif; ?>

    <p align=”center”><?php posts_nav_link() ?>

    </div>

    <div id=”sidebar”>

    <?php get_sidebar(); ?>

    <h2><?php _e(‘Links’); ?></h2>

      <?php get_links(‘-1’, ‘

    • ‘, ‘
    • ‘, ‘ ‘); ?>

    <h2><?php _e(‘Meta’); ?></h2>

    </div>

    <?php get_footer(); ?>

    </div>

    </div>

    </body>

    </html>

    thanks a lot

    PS I also notice the Optional Excerpt right below the File uploading option. Tried to put some text in there but it didn’t show anything from that box on the frontpage

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

The topic ‘How to create another post editor’ is closed to new replies.