Passing a field name from CFS wordpress plugin through to twig
When using Timber you can easily pass variables from your PHP controller through to your twig view. There are 2 ways to do this: 1) In functions.php you can pass variables globally to the context. The Timber Starter theme has this in it for reference. Your add_to_content function, should look like: Think of $context as … Read more