Home Forums Newsletter Plugin Support "More" tag at end of excerpt is now repeating the title

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #100920
    James LeDoux
    Participant

    For some reason, the “Read more” tag at the end of post excerpts is now repeating the title. So, instead of “… Read more” (linked), it says, “… Read moreTitle of the Post Here”.

    This doesn’t happen elsewhere on the site, so it seems to be something in Newsletter causing it. It didn’t used to happen, and I didn’t change the custom theme we’re using.

    The posts section is set up like this:

    <?php foreach ($postsfaux as $post) {
        setup_postdata($post);
    ?>
        <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    	    <img src="<?php echo newsletter_get_post_image($post->ID, 'thumbnail'); ?>" align="right" style="margin-left:7px;"></a>
            <h2 style="color: #202020;font-family: Arial;font-size: 20px;font-weight: bold;margin-top: 0;margin-bottom: -12px;">
    			<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
            </h2>
            <div style="color: #505050; font-family: Arial; font-size: 14px; line-height: 140%;">
                <?php the_excerpt(); ?>
            </div>
    <?php } ?>

    I tried replacing <?php the_excerpt(); ?> with <?php if (isset($theme_options['theme_excerpts'])) newsletter_the_excerpt($post); ?>, as I’ve seen in other theme files, but this shows only the excerpt, and no “read more” tag.

    Please help. Thanks!

    #101495
    Stefano
    Keymaster

    This is for sure a theme filter which changed the_excerpt() function. We try to not use anymore the native wp functions because they too often are manipulated by themes, but we have not completed that migration on all our newsletter themes.

    Stefano.

    #101715
    James LeDoux
    Participant

    I am using a pretty old custom theme at this point. I made it from the default theme a couple years ago. Do I need to recreate it? Or can I copy something over from the current default theme to make it work correctly? Or how can I change the filter to make it work? Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.