• Resolved Jason Ryan

    (@viablethought)


    Hello –

    I have this installed with ACF Pro and I am using it to output some Repeater fields on a project and I am finding that the text added to the “Prepend Text” field in the options is not being output on the front-end. It’s outputting the field values fine though.

    https://screencast.com/t/VzH7bLJ2d2bT

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frederik Rosendahl-Kaa

    (@frederik-rosendahl-kaa)

    Hi @viablethought,

    Unfortunately, as it is right now, the plugin is not made to display Prepend and Append.
    Not because it’s impossible, but just never thought about it.
    But it will unfortunately take a few days before I can send an update containing a fix for it.

    But if it can’t wait then it is possible to use filter hooks.
    here is an example of how it can be done just insert the code in function.php in the theme / child-theme https://gist.github.com/frederikrosendahlkaa/d93b81e0c1052478be24bf604d597efa

    I will notify you when I have made a solution and it has been released.
    If there is anything else please write again ??

    Best regards
    Frederik

    Thread Starter Jason Ryan

    (@viablethought)

    @frederik-rosendahl-kaa

    Thanks for the quick fix, however you had an extra “;” on line 6. Also, would be nice if you wrapped any Prepend and/or Append text in a <span> to allow for specific styling of that text ??

    Thank you,
    Jason

    • This reply was modified 5 years, 8 months ago by Jason Ryan.
    Plugin Author Frederik Rosendahl-Kaa

    (@frederik-rosendahl-kaa)

    Hi @viablethought,
    just wanted to inform you that I have now updated the plugin to version 1.7.0, where it is possible to choose to display prepend and append for Text, Number, Range, Email and Password fields.
    And thank you for making me aware of the error I made in the code example I sent to you ??

    You should be welcome to write again if you have suggestions for improvement or found a bug.

    Best regards
    Frederik

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Repeater Field Text’ is closed to new replies.