Ok – I understand they are set up for loop-inner.php.
But I was wondering if there was a way to custom-insert the Excerpt into the Widget fields in the Before / After field.
Can the templates be customized per widget? I am using 4 ACF Recent Post widgets on my homepage, I don’t want the same custom HTML for all of them, just one!
Hello,
Hmm, excerpt calls are required to be included within the loop, unless you want to print the excerpt for a specific post, right?
When it comes to custom templates per widget. Yes – you could assign a custom CSS class to each widget, then within the code of your custom templates, you could conditionally alter the HTML based on the class associated with a widget. This way you could create an unlimited number of templates depending on the class of your widget 🙂
Would that work for your case scenario?
Yes! That’s perfect Rafal! Thank you – didn’t realize we could add custom classes!
If only I knew where or how to write it! Haha.
Hello @mindfulcreative,
Well, I am afraid there’s no other way to achieve that yet 🙂
I could help you out with that problem, however, given the scope and the fact that it’s not a bug or an issue request I can only propose to do so through a paid request.
If you’d be interested in that please do not hesitate to reach out to me via https://codeable.io/developers/rafal-gicgier/?ref=PjTwX
Sincerely,
Rafal