I have copied the php code from the url you said into the single list view php and it’s showing on the front page now.
If i go to the extra fields en press export and select the groep i get the option export to php. I get this result.
if(function_exists(“register_field_group”))
{
register_field_group(array (
‘id’ => ‘acf_binnen’,
‘title’ => ‘Binnen’,
‘fields’ => array (
array (
‘key’ => ‘field_5329ae4ce9630’,
‘label’ => ‘Staat onderhoud’,
‘name’ => ‘staat_onderhoud’,
‘type’ => ‘select’,
‘choices’ => array (
‘Maak een keuze’ => ‘Maak een keuze’,
‘Slecht’ => ‘Slecht’,
‘Matig’ => ‘Matig’,
‘Goed’ => ‘Goed’,
‘Uitstekend’ => ‘Uitstekend’,
),
‘default_value’ => ”,
‘allow_null’ => 0,
‘multiple’ => 0,
),
array (
‘key’ => ‘field_5329e46f1e3ae’,
‘label’ => ‘Test’,
‘name’ => ‘test’,
‘type’ => ‘text’,
‘default_value’ => ”,
‘placeholder’ => ”,
‘prepend’ => ”,
‘append’ => ”,
‘formatting’ => ‘html’,
‘maxlength’ => ”,
),
),
‘location’ => array (
array (
array (
‘param’ => ‘post_type’,
‘operator’ => ‘==’,
‘value’ => ‘listings’,
‘order_no’ => 0,
‘group_no’ => 0,
),
),
array (
array (
‘param’ => ‘post_type’,
‘operator’ => ‘==’,
‘value’ => ‘post’,
‘order_no’ => 0,
‘group_no’ => 1,
),
),
array (
array (
‘param’ => ‘post_type’,
‘operator’ => ‘==’,
‘value’ => ‘page’,
‘order_no’ => 0,
‘group_no’ => 2,
),
),
),
‘options’ => array (
‘position’ => ‘side’,
‘layout’ => ‘no_box’,
‘hide_on_screen’ => array (
),
),
‘menu_order’ => 0,
));
}
What should i do with this then?
I have found it at the back end under export. Dummy
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.