Support » Plugin: Advanced Excerpt » How to show full (complete) excerpt, with a read more link?

  • Resolved Marc Bijl

    (@newoceans)


    Hi, thnx for this neat little plugin!

    I’m wondering how to show the full/complete excerpt with a read more link, instead of cutting it at a certain amount of characters or words.

    I know I can set the excerpt length to 999 or something, but I guess there should be a smoother way…

    Cheers,
    Marc

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hmm, forget about this one…

    I understand this plugin uses the first part of the body content, instead of the custom excerpt?

    Plugin Author WPKube

    (@wpkube)

    Hi Marc,

    Yes, the post content is used to generate the excerpt.

    Custom excerpts are for that specific purpose so if a custom excerpt is being used the plugin will let the full custom excerpt show up ( depending on whether the “Generate excerpts even if a post has a custom excerpt attached” option is checked or not ).

    I’m assuming you only want a way to show a “read more” button/link, not to make adjustments to the actual excerpt, correct?

    Hi, thnx for reaching out!

    My idea was to use:

    – an extensive excerpt in the body text, as intro for the full blog post
    – a short custom excerpt, for the blog page grid, and in Google Search results (SEO)

    With your plugin I wanted to use the full/complete short custom excerpt at the blog page grid, with just a read more link, and if possible shown as <strong></strong> text (just like the extensive excerpt in the blog post).

    But since the plugin makes use of the excerpt in the body text (the part before the ‘more’ tag I guess), I just misunderstood how it works ๐Ÿ˜‰

    No worries mate!

    Btw I allready solved it by adding this code in my child’s function.php file:

    function themeprefix_excerpt_read_more_link( $output ) {
    	global $post;
    	return $output . ' <a href="' . get_permalink( $post->ID ) . '" class="more-link" title="Read More">Lees verder ยป</a>';
    }
    add_filter( 'the_excerpt', 'themeprefix_excerpt_read_more_link' );
    Plugin Author WPKube

    (@wpkube)

    Hi Marc,

    Happy to hear you found a solution.

    Have a great day.

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