• Resolved anyway

    (@sfdsfwer)


    Hi,

    the plugin works pretty well for me, so far. Thank’s a lot for sharing!

    Only the function…

    No Custom Excerpts: Generate excerpts even if a post has a custom excerpt attached.

    … which I would really need, doesn’t work. The custom excerpts are displaed in full length.

    Is there a possibility to fix that? The website is on WordPress 5.9.2

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @sfdsfwer

    Can you let us know which theme are you using for your site? And maybe provide us the link to the screenshot on this issue as well?

    Thread Starter anyway

    (@sfdsfwer)

    Hi,

    thanks for your quick reply. The theme is self-coded based on the bootstrap starter theme “understrap”. On a screenshot you could not see the problem. As already mentioned, the only issue is that manually set excerpts should not be output, but only those generated by the plugin.

    Thanks for your support!

    Plugin Author WPKube

    (@wpkube)

    Hi @sfdsfwer

    I tried it with the Understrap theme and it’s working as expected.

    Is the loop-template/content.php file of the Understrap theme modified?

    Can you try changing the_excerpt() in that file with the_advanced_excerpt()

    And let me know what happens, that way we’ll know if the issue is with the plugin generating the excerpt or with the plugin trying to take over the excerpt output.

    Thread Starter anyway

    (@sfdsfwer)

    Hi @wpkube,

    thank you very much for your time!

    I have now made further tests. I found that the function in the “normal” archive works as expected. Sorry, for the incomplete info.

    Where it doesn’t work with the_excerpt() is on the home page, which is quite customized. It doesn’t work on our “recent posts” (implemented with WP_Query) and within the output of the plugin “WordPress Popular Posts”.
    When I use “the_advanced_excerpt()”, it only doesn’t work within the WPP plugin.

    Unfortunately, I can’t just use “the_advanced_excerpt()” because to pass the last three posts to another website, we use an API endpoint that works with get_the_excerpt. Can your plugin possibly provide something like get_the_advanced_excerpt()?

    Of course I could understand if our setup is too specific for your support. We might have to code something ourselves. But basically your plugin has everything we need.

    Plugin Author WPKube

    (@wpkube)

    Hi @sfdsfwer

    You’re welcome.

    The plugin has some safety measures to avoid the filter being applied in places where it shouldn’t be applied and also to avoid potential infinite loops. But that also means that in some places where it should apply, it doesn’t. We’re unfortunately a bit limited in ways to figure out if it should apply or not.

    But there is a way to make it return instead of echo, so hopefully that helps.

    the_advanced_excerpt( '', true );

    That will return instead of echo, so it works like get_the_excerpt()

    Thread Starter anyway

    (@sfdsfwer)

    Hello @wpkube,

    ah okay… thank’s a lot, that is very helpful. We are on another solution right now, but I will try that when I get a chance.

    • This reply was modified 2 years, 4 months ago by anyway.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“No Custom Excerpts” doesn’t work’ is closed to new replies.