I have a postgres database with a very large list of laws ad I need to display them on a wordpress site.
I am pretty new at this so I expect I may have some incorrect info or steps out of order.
It makes sense to me to start from posts and work down…e.g. add each law as a post. But there are thousands of them and I already have them in postgres so I need to work from the database backwards.
Is this the gist of what I need to do:
\-create a custom post type for the laws
\-import postgres (laws) in to the wp database
\-create a new custom page
\-on the custom page use wp\_query to loop through the custom post type (laws) and display them
Next steps:
I am taking small bites at this so I want to understand just displaying the laws, first. Next steps will be a better way to drill down into the laws (I don’t want to paginate 1000 laws)
