CPT template – pre fill acf field “Font Awesome Field”
-
Hello!
Using your plugin for some years now, really happy with it!
I’m having a problem with prefilling the field in the template function of CPT.How are the fields saved? and how can I populate them?
Below all the options I tried without luck ??'template' => array(
array('tatof/usp', array(
'data'=> [
'fontawesome_field' => '<i class="fa-classic fa-light fa-check fa-fw"></i>',
'fontawesome_field' => 'field_677e951905035',
]
)
)
===== OR =====
'template' => array(
array('tatof/usp', array(
'data'=> [
'fontawesome_field' => 'fa-classic fa-light fa-check',
'fontawesome_field' => 'field_677e951905035',
]
)
)
===== OR =====
'template' => array(
array('tatof/usp', array(
'data'=> [
'fontawesome_field' => 'check',
'fontawesome_field' => 'field_677e951905035',
]
)
)
===== OR =====
'template' => array(
array('tatof/usp', array(
'data'=> [
'fontawesome_field' => [
'element' => '',
'class' => 'fa-classic fa-light fa-check',
'id' => 'check',
'family' => 'classic',
'style' => 'light',
'prefix' => 'fa-classic fa-light',
'hex' => '\\f00c',
'unicode' => '?',
],
'fontawesome_field' => 'field_677e951905035',
]
)
)
===== OR =====
'template' => array(
array('tatof/usp', array(
'data'=> [
'fontawesome_field' => ['id' => 'check'],
'fontawesome_field' => 'field_677e951905035',
]
)
)
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.