Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rafa? Gicgier

    (@gicolek)

    Hello @mindfulcreative,

    The loop variables are setup for loop-inner.php file only, hence I am not sure about the above: https://www.screencast.com/t/cFV4neAVp.

    Have you tried setting up your own templates? See: https://pl.www.ads-software.com/plugins/acf-recent-posts-widget/ CREATING CUSTOM TEMPLATES section ??

    Sincerely,
    Rafal

    Thread Starter mindfulcreative

    (@mindfulcreative)

    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!

    Plugin Author Rafa? Gicgier

    (@gicolek)

    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?

    Thread Starter mindfulcreative

    (@mindfulcreative)

    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.

    Plugin Author Rafa? Gicgier

    (@gicolek)

    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

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