Table and pagination with Pods
-
Hi, I created a custom post type with a custom template to display it. I wanted to know two things. I’m trying to use the each shortcode in the table where I use this, but I’m not getting any output by doing this. The code now is like this:
<style> table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } tr:nth-child(even) { background-color: #dddddd; } </style> <table> <tr> <th>Titolo circolare</th> <th>Download</th> </tr> <tr> <td>{@post_title}</td> <td><a href="{@circolare_pdf._src}" target="_blank" rel="noopener">ALLEGATO</a></td> </tr> </table>
This is working, as you can see from this page: https://liceoaugustorm.altervista.org/area-docenti-ata/
But I wanted the first line (the one in bold) to be only at the top, and then a line for each post type. Now the plugin is just creating a table for every new article.
The second question is: can I add a pagination at the end of the table to show older posts in other pages? I looked online and found not so much on this.
Hope I was clear enough, thank you all!
The page I need help with: [log in to see the link]
- The topic ‘Table and pagination with Pods’ is closed to new replies.