M
M
matros972018-02-15 20:15:44
WordPress
matros97, 2018-02-15 20:15:44

Adding custom field by ACF user?

Good evening, can you tell me if this can be done using the Advanced Custom Fields plugin
. There are links to social networks on the page. networks, implemented through the text field of the ACF plugin,
and I need to do this in the admin panel when editing an article, so that when the + button is clicked, a field is added, and the user adds another link to the social. networks, that is, so that it does not climb into the ACF plugin and into the code. If it can be done please tell me how

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Ignatiev, 2018-02-15
@vladislavignatyev

Can. Create a group of dynamic fields and in it already create any fields you like.
https://www.advancedcustomfields.com/add-ons/flexi...
And about the output in your template, use a similar construction:

The code
if (have_rows('имя группы полей')): while (have_rows('имя группы полей')): the_row();
            if (get_row_layout() == 'имя блока с полями') : 
            $переменная = get_sub_field('имя поля');

and then output the variable where you need

O
Orkhan Hasanli, 2018-02-15
@azerphoenix

Hello!
There is an add-on for the ACF Repeater plugin (repeater).
Create a repeater, put the required field in it, output the repeater cycle in the template.
If necessary, you can limit the number of repeater fields.
https://www.advancedcustomfields.com/resources/rep...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question