WordPress.org

Ready to get started?Download WordPress

Forums

Editing and Posting Excerpts in Latest Version of WP (5 posts)

  1. williamgarner
    Member
    Posted 4 years ago #

    Hello,

    I just downloaded the Excerpt Editor plugin, installed it correctly, checked all the right blocks (methinks), wrote an excerpt for a post, and still cannot get the EXCERPT to show up on the front page of my site.

    What gives?

    Thank you kindly,

    Dean

  2. Jonas Grumby
    Member
    Posted 4 years ago #

    If your front page is a blog page you may have to edit the index.php of your theme. Where it says the_content change it to the_excerpt.

    I don't know what that plugin does but WP natively supports manual insertion of the excerpt when you create or edit a post.

  3. williamgarner
    Member
    Posted 4 years ago #

    Thank you for your reply. It didn't work. Here's my Index.php file. Any ideas from here?

    <?php get_header(); ?>
    <?php
    $options = get_option("widget_sideFeature");
    $posts = get_option('uwc_number_posts');
    if (is_active_widget('widget_myFeature')) {
    $category = "showposts=".$posts."&cat=-".$options['category'];
    } else {
    $category = "showposts=".$posts;
    } $x = 1;
    ?>

    <?php query_posts($category); ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php if($x == 1) { ?>
    <div class="post">
    <h5>Latest Story</h5>
    <h1>"><?php the_title(); ?></h1>
    <div class="meta">
    By <?php the_author() ?>
    </div>

    <div class="storycontent">
    <?php if(get_option('uwc_excerpt_content') == 'content') {
    theme_content('(more)');
    } else {
    getImage('1');
    theme_excerpt(get_option('uwc_excerpt_one'));
    }
    ?>
    </div>

    <?php $x++; ?>
    <?php } elseif($x >= 2 && $x < 4) { ?>
    <?php if($x == 2) { $i=1; ?></div><div id="twocol"><?php } ?>
    <div class="twopost twopost<?php echo $i; $i++; ?>">
    <h1>"><?php the_title(); ?></h1>
    <div class="meta">
    By <?php the_author() ?>
    </div>

    <div class="storycontent">
    <?php if(get_option('uwc_excerpt_content') == 'content') {
    theme_content('(more)');
    } else {
    getImage('1');
    theme_excerpt(get_option('uwc_excerpt_two'));
    }
    ?>
    </div>
    </div>
    <?php $x++; ?>
    <?php } else { ?>
    <?php if($x == 4) { $i=1; ?></div><hr class="mainhr" /><div id="threecol"><div id="threecol2"><?php } ?>
    <div class="threepost threepost<?php if($i==7) { $i = 4; } echo $i; $i++; ?>">
    <h2>"><?php the_title(); ?></h2>
    <div class="meta">
    By <?php the_author() ?>
    </div>

    <div class="storycontent">
    <?php if(get_option('uwc_excerpt_content') == 'content') {
    theme_content('(more)');
    } else {
    getImage('1');
    theme_excerpt(get_option('uwc_excerpt_three'));
    }
    ?>
    </div>
    </div>
    <?php $x++; } ?>
    <?php endwhile; ?>
    <?php if($x>4) { echo "</div>"; } ?>
    </div>

    <?php get_footer(); ?>

  4. Jonas Grumby
    Member
    Posted 4 years ago #

    What is uwc? Is that a reference to your theme or a plugin? That is definitely not standard loop code. What is the theme? Some of the newer themes offer an option in admin to toggle full content or excerpts on blog pages.

  5. williamgarner
    Member
    Posted 4 years ago #

    Hello, Skipper:

    I'm using the Magazine Basic theme by Chris Bavota. I've searched high and low for ANYTHING that will allow me to change my EXCERPT settings.

    Dunno what UWC means in this code.

    Thank you,

    Will

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.