• Resolved thissid1

    (@thissid1)


    I’m using the theme ‘multiflex 5.2’ and i’ve been unable to get any sort of excerpt function to work from the outset. I’ve got ‘Advanced Excerpt’ plug-in but it doesn’t work either – not surprising if the function is not there in the first place. Here is the main part of the code from the index page…

    // <h1<?php if (get_post_meta($post->ID, ‘icon’, true) ) { ?> class=”<?php echo get_post_meta($post->ID, “icon”, $single = true); ?>”<?php } ?>>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h1>
    <p>Posted on <?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></p>

    <?php if (is_search()) { the_excerpt(); } else { the_content(‘Read the rest of this entry »’); } ?>

    <p><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?> Filed under <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>

    <?php comments_template(); ?> //

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I use the plugin Excerpt Editor, I have tried Advanced Excerpt, I don’t know why I thought the first better.

    Anyway, do the excerpts work when you use the default theme? That could indicate that it’s your theme’s coding.

    Thread Starter thissid1

    (@thissid1)

    I didn’t think to test the default, but no, the default WordPress is not giving me excerpts on the index page either – full posts ?? (same with any of the themes I’ve downloaded)
    So can someone tell me where in the code the problem may be?
    I’ve got the latest version of WordPress.
    Thanks.
    Matt.

    change this line:
    <?php if (is_search()) { the_excerpt(); } else { the_content('Read the rest of this entry ?'); } ?>
    into:
    <?php the_excerpt(); ?>

    Thread Starter thissid1

    (@thissid1)

    YES!! That did it – thanks so much alchymyth – saved me ??
    Matt.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No Excerpt Function’ is closed to new replies.