Post Excerpt Smart Action not behaving as expected

Sorry if this is obvious but I’m coming up without an answer after searching quite a bit.

Is there a way to have the “Post Excerpt Smart Action” create an excerpt using the first 55 words of the post if the excerpt field is left empty? After not having that feature behave as I thought it should (and double-checking it on the WordPress.org documentation), I think I’m probably missing something obvious in Pinegrow. Any help to point me in the right direction would be appreciated.

Thanks!

Hey @chipriggs:
Can you give us a little more detail here? I use that post excerpt smart action all the time, and it works as expected, using the first 55 words of the post when the excerpt is empty. You don’t happen to have the “only display if excerpt is set” checkbox checked, do you?

It also might be worth checking the PHP file that Pinegrow generated. It should have something like this inside it:

<p class="i-have-no-class"><?php echo get_the_excerpt(); ?></p>

<!-- Functions.php section Include Resources -->
require_once "inc/wp_pg_helpers.php";

Also, the function you are looking for is probably get_the_excerpt() unless you are trying to grab the excerpt from the current post.

image

Hi @adamslowe :wave:, Thanks for the reply!

Yeah, I thought it was weird myself which is why I posted something up here about it but I figured it out earlier this morning and just didn’t have a chance to update my original post with my findings.

Just for context, I didn’t have “Only display if excerpt is set” checked and the “get_the_excerpt” was showing up in the generated code so my next step was to start deactivating plug-ins to see if something I was running was causing the issue. Turns out that just like in Ghost Busters lore you’re not supposed to cross the streams! I was running Cwicly on this install and when I deactivated it I started seeing generated excerpts. :person_facepalming:

For a bit of context on why I was using Pinegrow & using Cwicly (excuses), I had Cwicly running as I prefer its reworking of the Gutenburg editor to the core one, for $50 its a steal as you get ACF Pro bundled in with it and it covers 3 sites, and I wanted to hopefully use a few of its pre-made blocks and features rather than trying to figuring how to do the same things with Pinegrow as the current project I’m working on is dragging out far, far too long and I just need to get it done ASAP.

Soooooooo, yeah… Now I need to decide which direction I’m going to go with this. Anyway, Thanks again for the reply, and for all the videos you’re putting out as they’re AWESOME and super helpful. :raised_hands: :raised_hands:

1 Like

That sounds like an issue that should be raised with Cwicly since it could impact plenty of other things.

image

Yep, for sure. I’ll reach out to Louis in their forums and let him know what I’m experiencing.

1 Like

Cwicly fixed the issue. 1.2.5.2 - Changelog - Cwicly

2 Likes

Yes! I just installed the update and now the generated excerpt text shows as expected.