Output row number and column letter inside foreach
-
Is it possible to output the current cell’s row number and the associated column letter within the foreach loop?
So that the code would look more like this:
<table> <tbody> <tr> <td id="A1">Data</td> </tr> </tbody> </table>
This way I could create a separate repeater field which could target in example A1 and associate a background color with this cell through the color picker field.
https://www.ads-software.com/plugins/advanced-custom-fields-table-field/
- The topic ‘Output row number and column letter inside foreach’ is closed to new replies.