Support

Account

Forum Replies Created

  • If it were possible to solve it with the standard WordPress posts, I wouldn’t be on the ACF Forum asking, do you agree?

  • I use a dropdown list with manually entering data.

  • There was a little confusion in this topic, I’ll post it so I can finish.

    I’m leaning heavily on https://www.advancedcustomfields.com/resources/ em Support to solve my doubts about ACF.

  • I’m having trouble getting the [json url] object to include as options in the post type.

    Another idea would be to create with Post Types and Taxonomy, but it would need to make the relation of the CPT to allow the selection of the First Level – Parent (Unit) and after Loading the Unit in the Select Field, it loads a second Select with the Second Level Options – Child (Sector) allowing the selection of only the Sector of the Parent Unit.

    Do you have any examples of how to implement this?

    1 – I need to create two CTPs [Unit] and [Sector];
    2 – The CTP [Unit] will have a Child CPT [Sector] (How to set this Hierarchy, to allow the selection of the child?)
    3 – I have a Taxonomy [Counties] (Similar to Cities), which makes it possible to separate the [units] by [Counties]

    Did you understand my problem?

  • I need to load the post Type with the data from the external URL, which brings a json with the data (fist code Sample of remote url(json))

    My data is:

    Comarca > Unidade > Setor

    I need tó load a data from json URL to be selected in the Backend

    `
    {
    “id”: 1,
    “nome”: “Tribunal de Justiça do Estado do Acre”,
    “sigla”: “TJAC”,
    “comarcas”: [{
    “id”: 2,
    “nome”: “Acrelândia”,
    “sigla”: “AL”,
    “unidades”: [{
    “id”: 24,
    “nome”: “Direção do Foro”,
    “sigla”: “ALDFO”,
    “setor”: [{
    “id”: 28,
    “nome”: “Vara Cível”,
    “sigla”: “ACVCI”,
    “tipo”: “VARA”
    },
    {
    “id”: 30,
    “nome”: “Vara Criminal”,
    “sigla”: “ACVCR”,
    “tipo”: “VIRTUAL”
    }

    ],
    “tipo”: “ADMINISTRATIVA”,
    ]
    }
    [{

    “id”: 2,
    “nome”: “Rio Branco”,
    “sigla”: “RB”,
    “unidades”: [{
    “id”: 24,
    “nome”: “Direção do Foro”,
    “sigla”: “ALDFO”,
    “setor”: [{
    “id”: 28,
    “nome”: “Central de Execução de Penas e Medidas Alternativas”,
    “sigla”: “BRCEPAL”,
    “tipo”: “VARA”
    },
    {
    “id”: 30,
    “nome”: “Juizado Especial Criminal”,
    “sigla”: “BRJECRIM”,
    “tipo”: “VIRTUAL”
    }

    ],
    “tipo”: “ADMINISTRATIVA”

    }]
    }]
    }
    }
    `

    Field “sertor” => receive [nome] after selecting [comarca] and [unidade]
    Field “sigla” => receive [sigla]

    I’m researching an implementation model that makes this possible.

Viewing 5 posts - 1 through 5 (of 5 total)