P
P
Pavel Didenko2018-06-12 21:05:23
WordPress
Pavel Didenko, 2018-06-12 21:05:23

How to create additional fields in the wordpress admin panel for editing and adding new data?

Hey!
I am making a website and faced the following problem:
There is a layout of a block with prices for services, a section of code with "service" and "cost" looks like this:

<div class="price-list_cost">
  <div class="row align-items-center">
    <div class="col-6 col-sm-8">
      <div class="price-list_td">Первичный приём косметолога</div>
    </div>
    <div class="col-6 col-sm-4">
      <div class="price-list_td">1500 руб.</div>
     </div>
  </div>
</div>

In the WP admin panel, I want to make it so that there is a separate block of the form:
Service (a field under this heading) and Cost (a field under this heading)
When adding a new service to the pricing table on the page, you need to click on some element in the admin panel, for example "plus sign" and 2 more fields are added from the bottom (in one the name of the service, in the other the price) and thus you can replenish the table with prices several times.
Question: in which direction to dig to do this? With what is it done? I don’t know how to even enter a question into a search engine to get the right answer

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Yanchevsky, 2018-06-12
@Dasslier

Hey!
I think the free version of Meta Box had a Repeater.

M
Mr Crabbz, 2018-06-12
@Punkie

https://www.advancedcustomfields.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question