Hey, we have recently started setting up HubDB to hold some content on our page. The content will be for a news like page where we will have various links to different articles. I’d like to have one spot hold whatever our newest article is without a user needing to do any additional work beyond adding a new row to our HubDB table.
So is there a way to have a page pull in whatever the newest row is in a HubDB Table?
Hey @PeterKumospace
Yes it can be done just check the code below -
{% for row in hubdb_table_rows(‘name_of_hubdb’, ‘&orderBy=-hs_created_at’) %}
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.
This is perfect, thank you!