Timeline for Passing a variable to get_template_part
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 17, 2020 at 9:27 | comment | added | powerbuoy |
Unfortunately the $args parameter isn't run through extract() so you'll need to do echo $args['foo'] in the template. I wish there was an option to extract the args too.
|
|
Aug 3, 2020 at 21:13 | history | answered | Pea | CC BY-SA 4.0 |