Home Forums Add-ons Repeater Field Repeater field in functions.php Reply To: Repeater field in functions.php

  • HI @miguelaichon

    Your functions.php wont know what the value of $post is by default, so ideally you’d want to put that code into a function which passes the post ID value into it so that you can use that value.

    But why not just put this code directly into your template – single or page – and then you can be inside the loop where the post ID value will be known?