• When I create a WP Show Posts item and select on tab 4 (Content) “Excerpt” in the option “Content type”, the excerpt is not given, but the first 30 words of the article. That is – ofcourse – also the case if I select full post and 30 words, but choosing “excerpt” does not change anything. I have defined a different text in the Excerpt field of my post and I am using GeneratePress Premium.

    How can I get the excerpt ?

    Frans

    • This topic was modified 6 years, 3 months ago by fjvanittersum.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tom

    (@edge22)

    Hi there,

    If you’re using the “Excerpt” metabox, the plugin will use that full excerpt instead of automatically generating one (and using the first 30 words).

    Let me know if that makes sense or not ??

    Thread Starter fjvanittersum

    (@fjvanittersum)

    I did use the excerpt metabox. I’ll do additonal testing.

    Frans

    Thread Starter fjvanittersum

    (@fjvanittersum)

    I did additional testing. Both on my test system (WAMP) and production, there is no difference between choosing Excerpt or “Volledig” (this is the Dutch translation, is it Full in English ?). I checked whether Excerpt texts are present in the Excerpt Metabox of the displayed posts: they are in all posts displayed.

    – If I choose “None”, no text is given
    – If I Choose Excerpt: the first 30 words of the full post are given
    – Ig I choose Full: the first 30 words of the full post are given

    So why doesn’t the Excerpt selector a different result ? My WP Show Posts version is 1.1.3 ? On the tested page, I also use Lightweight Grid Columns 1.0 and PDF & Print by BestWebSoft 2.0.3.

    Thanks !

    Frans

    Thread Starter fjvanittersum

    (@fjvanittersum)

    Maybe, I’ve found a clue:

    – If there a <!–more–> tag in a post, the Excerpt is not given in a WP Show Posts item (even when the Content Type is “Excerpt”);
    – If there isn’t a <!–more–> tag in a post, the Excerpt is given correctly.

    Is this normal or is it a bug ? In other words, can I display the Excerpt text in a WP Show Post item, even if there is a <!–more–> tag in the post ?

    Thanks !

    Frans

    Plugin Author Tom

    (@edge22)

    Yes, you can get around that with a filter:

    add_filter( 'wpsp_more_tag', '__return_null' );

    Adding PHP: https://docs.wpshowposts.com/article/adding-php/

    Let me know if that helps or not ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Excerpt in WP Show Posts’ is closed to new replies.