Title: Database driven web pages in wordpress
Last modified: May 22, 2021

---

# Database driven web pages in wordpress

 *  [kenoli](https://wordpress.org/support/users/kenoli/)
 * (@kenoli)
 * [5 years ago](https://wordpress.org/support/topic/database-driven-web-pages-in-wordpress/)
 * We need to create a series of artist pages with an image and info about artists
   in a show. The easiest way for us to do this is with a bit of php code that grabs
   the info from a database and inserts it in an html template. We would like to
   use wordpress to lay out the page and deal with responsiveness to different screens
   and integration into a wordpress theme for consistency across the site. This,
   of course, is much easier than hard coding pages for 100 or more artists. Is 
   there some way to do this? Maybe a “GET” url to the php script with the artist
   ID placed in a wordpress block that would populate that block. Of course, we 
   would need another page with a link to access the artist ID and send it to the
   artist page script. I can’t figure out if this is possible or how to manage it.
   It occurred to me it might have to be done at the theme level, maybe with a child
   theme. But, it is hard to follow all the wordpress code to see how various aspects
   of a page is generated.
 * We will also need to generate a page where the info is inserted into the database
   to begin with. Artists will need to log into that page for security purposes,
   of course.
 * It would probably require sessions and am also not sure how this integrates with
   wordpress as wordpress is probably already using sessions.
 * Sorry if this is more obvious than I have found it. I’m actually more knowledgeable
   about php than I am about wordpress, which can be challenging in itself.
 * Thanks,
 * —Kenoli
    -  This topic was modified 5 years ago by [kenoli](https://wordpress.org/support/users/kenoli/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years ago](https://wordpress.org/support/topic/database-driven-web-pages-in-wordpress/#post-14470969)
 * To do this the “WordPress way”, you might want to recast that database to create
   a set of custom post types for “artist” and “artworks”, plus some custom taxonomies
   to make it easy to connect and organize things. Using CPTs and WP taxonomies 
   makes it possible for you to take advantage of more parts of the WP ecosystem.
 * Custom Post Type
    [https://learn.wordpress.org/lesson-plan/custom-post-types/](https://learn.wordpress.org/lesson-plan/custom-post-types/)
   [https://developer.wordpress.org/plugins/post-types/](https://developer.wordpress.org/plugins/post-types/)
 *  Thread Starter [kenoli](https://wordpress.org/support/users/kenoli/)
 * (@kenoli)
 * [5 years ago](https://wordpress.org/support/topic/database-driven-web-pages-in-wordpress/#post-14471467)
 * Steven — Well, it’s going to take me some time to digest this information. Thank
   you so much. It is a new way of thinking.
 * –Kenoli
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years ago](https://wordpress.org/support/topic/database-driven-web-pages-in-wordpress/#post-14471472)
 * If you’re going the CPT route, I also recommend Advanced Custom Fields Pro.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Database driven web pages in wordpress’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/database-driven-web-pages-in-wordpress/#post-14471472)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
