I am launching a business and need to consider my options for creating the website. I could fully code my website as I’ve done in the past but I’d like to consider WordPress as an option to reduce website maintenance burden and the time it takes to create and edit the website.
One specific concern however is dynamic page generation. I want to be able to have a database with different rows where each row would correspond to a page on my website. Ideally, I would:
1. Have an internal form where I can add, modify, and delete entries / rows.
2. When the user visits a particular url corresponding to a database entry, the webpage will be generated using a template which pulls from that row to populate the page.
3. If I ever want to add properties in the future, the form I would fill out would be updated to include that new property and I can specify where in the page template that property should be rendered.
4. Bonus if I can put conditional logic in the template.
Is this something that WordPress has native support for, or alternatively, are there any well-known & trusted plugins which can help accomplish this?
[ad_2]
This is where Custom Post Types come in Handy. You can have, for example, a custom post type that’ll show up on the left admin bar in your dashboard and have something like “Team Members”, for example. Then you can have a post for each one (creating a new one is as easy as pushing “New” at the top of that page, much like creating a new page). Then you would have a single page template for that post type, so something like `single-teammember.php`, and it’ll handle the permalink and everything for whichever teammember is currently selected.