php – WordPress create multiple page from json file

Question

I have this problem on WordPress.
I have a json file with a structure like this

{ 
   "obj": [ 
      "obj1": {
         "field1": "..",
         "field2": [
            {
                "field": ""
            }
         ] 
      }, 
      "obj2": {
       "field1": "..",
         "field2": [
            {
                "field": ""
            }
         ] 
     }, 
      ... 
   ]
} 

Now I need to create a page for each object in this json. Each page is populated with the field of the obj.

How I can do this?

Thx

0
Paolo Libero 5 months 2022-03-31T02:22:09-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse