Support » Plugin: Advanced Excerpt » Problem Applying Filters

  • Resolved jkuzma

    (@jkuzma)


    Version 4.2.1 only showed […] which is fixed in 4.2.2 update, however, I have some pages where I use the following excerpt code (instead of the Add read more link to excerpt option in the plugin, as I do not want “read more” on every page)

    <?php echo apply_filters(‘the_excerpt’,get_the_excerpt().’ more ‘); ?>

    However, the “more” link now breaks to a new line. This was not the case in plugin version 4.1.1

    https://wordpress.org/plugins/advanced-excerpt/

Viewing 1 replies (of 1 total)
  • Hi Jkuzma,

    That is the the expected behavior.

    Let pretend your excerpt looks like this:

    <p>The quick brown fox jumps over the lazy dog</p>

    Your code appends the word ‘more’ to the end of excerpt, making it:

    <p>The quick brown fox jumps over the lazy dog</p> more

    If you want the text to appear inside of the paragraph tag you’ll need to use the “Read More Link” setting in the Advanced Excerpt options page.

    I’m not entirely sure what you mean when you say:

    as I do not want “read more” on every page

    Cheers,

    Chris

Viewing 1 replies (of 1 total)
  • The topic ‘Problem Applying Filters’ is closed to new replies.