Output a HTML table of Data based on CPT
-
Hi
I would like to display all fields in a HTML table like in the same code but for some reason I can’t get it to work.The Shortcode:
[pods name="deceased" orderby="burial_date ASC" limit="10" template="Deceased Table Template" pagination="true"]
The Template is below:
[before] <table> <thead> <tr> <th>Title</th> <th>Grave Number</th> <th>Age</th> <th>Address</th> <th>Burial Date</th> <th>Clergy</th> </tr> </thead> <tbody> [/before] [if burial_date] [each burial_date] <tr> <td>{@post_title}</td> <td>{@grave_number_2}</td> <td>{@age}</td> <td>{@address}</td> <td>{@burial_date}</td> <td>{@clergy}</td> <td><a href="{@permalink,esc_url}" class="button">Visit Grave {@grave_number_2}</a></td> </tr> [/each] [else] <tr> <td colspan="7">No Deceased found</td> </tr> [/if] [after] </body> </table> [/after]
What have I done wrong here as I am not seeing any data at all?
Morris
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Output a HTML table of Data based on CPT’ is closed to new replies.