Skip to content
Advertisement

Reading JSON Link from WordPress into a Table [closed]

I have a problem to construct my data into a table since currently each row i have is creating a new table. I am using the JSON Content Importer and below is the code i have:

Advertisement

Answer

Does it work?

<table>
  <thead>
<tr>
   <th>ID</th>
   <th>Shoes</th>
   <th>Premier League</th>
   <th>Serie A</th>
</tr>
</thead>
<tbody>
[jsoncontentimporter url= basenode=data]
 <tr>
     <td>{id}</td>
     <td>{shoes}</td>
     <td>{premierleague}</td>
     <td>{seriea}</td>
 </tr>
[/jsoncontentimporter]
</tbody>
</table>
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement